Flags records with a longitude or latitude of exactly zero, and records within a planar distance of 0.5 degrees of (0, 0).
Arguments
- x
A data frame of occurrence records.
- buffer
Buffer distance of the test, in the unit of its Buffer section; the default is the test's default buffer.
- ...
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
Equivalent to cc_zero(). CoordinateCleaner
3.0.1 documents the same 0.5 degree buffer but applies a radius of 0.5
metres, so it flags only exact zeros. buffers = list(zero = 0) gives
the same flags.
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_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()
Examples
x <- data.frame(decimalLongitude = c(0, 0.3, 0.4), decimalLatitude = c(42, 0.3, 0.4))
flag_occurrences(x, tests = "zero")$flag_zero
flag_occurrences(x, tests = "zero", buffers = list(zero = 0))$flag_zero
clean_zero(x, buffer = 0)