establishment_introduced flags records with establishmentMeans
introduced, naturalised (either spelling) or invasive;
establishment_managed flags managed or cultivated 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.
See also
flag_occurrences(), flag_tests()
Other tests:
clean_age_equal(),
clean_age_outlier(),
clean_age_range_outlier(),
clean_aohi(),
clean_basis_fossil(),
clean_capital(),
clean_centroid(),
clean_country_mismatch(),
clean_dataset_ddmm(),
clean_dataset_rounded(),
clean_duplicate(),
clean_equal(),
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(establishmentMeans = c(NA, "MANAGED", "native", "Naturalised"))
f <- flag_occurrences(x, tests = c("establishment_introduced", "establishment_managed"))
f[, c("flag_establishment_introduced", "flag_establishment_managed")]
x |> clean_establishment_introduced() |> clean_establishment_managed()