thin_points: Spatial Correction - Spatially thin records
Description
The thin_points function returns records based on coordinate thinning.
Usage
thin_points(
df,
accepted.name = NA,
distance = 5,
reps = 100,
latitude = "latitude",
longitude = "longitude"
)
Value
df is a data frame with the cleaned data.
Arguments
- df
Data frame of occurrence records.
- accepted.name
Accepted name of your species. This argument is not required
if the data frame already contains an accepted_name column.
- distance
Default = 5. Distance in km to separate records.
- reps
Default = 100. Number of times to perform thinning algorithm.
- latitude
Default = "latitude". The name of the latitude column in the data frame.
- longitude
Default = "longitude". The name of the longitude column in the data frame.
Details
This function requires package spThin.
Examples
Run this codethinned_data <- thin_points(data, accepted.name = "Galax urceolata")
Run the code above in your browser using DataLab