Removes or flags records with equal minimum and maximum age.
cf_equal( x, min_age ="min_ma", max_age ="max_ma", value ="clean", verbose =TRUE)
Arguments
x: data.frame. Containing fossil records with taxon names, ages, and geographic coordinates.
min_age: character string. The column with the minimum age. Default = min_ma .
max_age: character string. The column with the maximum age. Default = max_ma .
value: character string. Defining the output value. See value.
verbose: logical. If TRUE reports the name of the test and the number of records flagged.
Returns
Depending on the value argument, either a data.frame
containing the records considered correct by the test (clean ) or a logical vector (flagged ), with TRUE = test passed and FALSE = test failed/potentially problematic . Default = clean .