Reference a list of continental areas to remove them from the dataframe
output by SSARP::find_areas()
.
Arguments
- occs
The dataframe that is returned by
SSARP::find_areas()
. I do not recommend using a custom dataframe for this function because it references areas given by the area database used inSSARP::find_areas()
. If you must use a custom dataframe, please ensure that the landmass areas are in the 9th column of the dataframe.
Examples
# The GBIF key for the Anolis genus is 8782549
# Obtained with: key <- get_key(query = "Anolis", rank = "genus")
key <- 8782549
# Read in example dataset obtained through:
# dat <- get_data(key = key, limit = 100)
dat <- read.csv(system.file("extdata",
"SSARP_Example_Dat.csv",
package = "SSARP"))
occs <- find_land(occurrences = dat)
areas <- find_areas(occs = occs)
#> ℹ Recording island names...
#> ℹ Assembling island dictionary...
#> ℹ Adding areas to final dataframe...
new_areas <- remove_continents(areas)