basis_fossil flags records with basisOfRecord FOSSIL_SPECIMEN,
basis_living those with LIVING_SPECIMEN (botanic garden, zoo and
culture-collection individuals). Matching ignores case and surrounding
spaces.
Arguments
- x
A data frame of occurrence records.
- ...
Further arguments to
flag_occurrences():columns,reference,gazetteers,land_scale.
Value
clean_<test>(): the rows of x the test does not flag, with the
columns of x unchanged. See keep_unflagged(), Cleaning functions.
CoordinateCleaner
No equivalent; additions of this package.
CoordinateCleaner's fossil tests (cf_*()) test fossil ages and ranges,
which this package does not.
See also
flag_occurrences(), flag_tests()
Other tests:
clean_age_equal(),
clean_age_outlier(),
clean_age_range_outlier(),
clean_aohi(),
clean_capital(),
clean_centroid(),
clean_country_mismatch(),
clean_dataset_ddmm(),
clean_dataset_rounded(),
clean_duplicate(),
clean_equal(),
clean_establishment_introduced(),
clean_gbif_headquarters(),
clean_institution(),
clean_invalid(),
clean_issue_coordinate(),
clean_outlier(),
clean_range(),
clean_sea(),
clean_sea_nonmarine(),
clean_spatiotemporal_outlier(),
clean_urban(),
clean_zero()
Examples
x <- data.frame(basisOfRecord = c("HUMAN_OBSERVATION", "LIVING_SPECIMEN", "FOSSIL_SPECIMEN"))
f <- flag_occurrences(x, tests = c("basis_fossil", "basis_living"))
f[, c("flag_basis_fossil", "flag_basis_living")]
clean_basis_living(x)