powered by
clean_points Eliminates species occurrence records that are too close to each other or at undesired locations.
clean_points
clean_points(coord, merge_dist, coord_col = c("Lon", "Lat"), filter_layer = NULL, na.rm = FALSE)
data.frame. Data frame containing longitudes (Lon) and latitudes (Lat) of occurrence records of a species.
numeric. Maximum distance between points to be merged, in meters.
vector of strings or integers. If x has more than two columns, indicate the name or position of longitude and latitude columns
RasterLayer. Binary raster with 1 representing the regions where records should be kept and 0 the regions where they should be eliminated.
logical. if TRUE, remove lines with NA in any coordinate.
Data frame with remaining longitudes and latitudes.
# NOT RUN { TtorquatusDistribution_clean <- clean_points(coord = TtorquatusDistribution, merge_dist = 20000, filter_layer = !is.na(df_alt)) # }
Run the code above in your browser using DataLab