View source: R/record_flagger.R
record_flagger | R Documentation |
record_flagger
cross references occurrence records against either a vector
of country names with established populations specified in infected_countries
or those presented in a CABI distribution file. It will then either flag
or automatically remove occurrence records that occur in countries outside
one of these lists.
record_flagger( occurrence_records, infected_countries, cabi_ref, manual_check = FALSE, return_df = FALSE )
occurrence_records |
A |
infected_countries |
Character vector of countries with known established populations. |
cabi_ref |
Character. The path to a .csv file downloaded from a CABI datasheet containing the country-scale distributional data for the pest. Note that if infected_countries the CABI data will not be used. |
manual_check |
Logical. Allows interactive selection of which
unverified points to retain. Interactive map will only be produced if
unverified records are present and if this argument is set to |
return_df |
Logical. Return the object as a |
A data.frame
or an sf
points object flagging records
found in countries in which do not occur in infected_countries OR
is not reported as being present in CABI.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.