Skip to contents

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.

Usage

clean_establishment_introduced(x, ...)

clean_establishment_managed(x, ...)

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.

Fields

establishment.

CoordinateCleaner

No equivalent; additions of this package.

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()