Cleans presence data
Examples
# \donttest{
Presences <- SDMWorkflows::GetOccs(Species = c("Abies concolor"), WriteFile = FALSE, limit = 500)
#> Starting species 1
#> 1 of 1 ready! 2023-05-07 20:15:53.474185
Cleaned <- clean_presences(Presences[[1]])
#> Testing coordinate validity
#> Flagged 0 records.
#> Testing equal lat/lon
#> Flagged 0 records.
#> Testing zero coordinates
#> Warning: GEOS support is provided by the sf and terra packages among others
#> Flagged 0 records.
#> Testing country capitals
#> Flagged 4 records.
#> Testing country centroids
#> Flagged 0 records.
#> Testing sea coordinates
#> Flagged 5 records.
#> Testing geographic outliers
#> Flagged 0 records.
#> Testing biodiversity institutions
#> Flagged 0 records.
#> Testing duplicates
#> Flagged 25 records.
#> Flagged 33 of 500 records, EQ = 0.07.
# }