- data
A data frame or tibble. Occurrence records as input.
- lon
Character. The name of the column to use as longitude. Default = "decimalLongitude".
- lat
Character. The name of the column to use as latitude. Default = "decimalLatitude".
- scale
Numeric or character. To be passed to rnaturalearth::ne_countries()
's scale.
Scale of map to return, one of 110, 50, 10 or "small", "medium", "large".
Smaller values return higher-resolution maps.
- pointBuffer
Numeric. Amount to buffer points, in decimal degrees. If the point is outside
of a country, but within this point buffer, it will not be flagged. Default = 0.01.
- stepSize
Numeric. The number of occurrences to process in each chunk. Default = 1000000.
- mc.cores
Numeric. If > 1, the st_intersects function will run in parallel
using mclapply using the number of cores specified. If = 1 then it will be run using a serial
loop. NOTE: Windows machines must use a value of 1 (see ?parallel::mclapply). Additionally,
be aware that each thread can use large chunks of memory.
Default = 1.