View source: R/removeDuplicates.R
removeDuplicates | R Documentation |
Remove duplicate occurrence records by exact coordinate matching or by ensuring only one record per grid cell of a raster. Coordinates are assumed be geographic coordinates (i.e. latitude and longitude) on the WGS84 datum
removeDuplicates(data = NULL, baseGrid = NULL, byGrid = FALSE, quiet = FALSE)
data |
A data.frame or matrix with at least a latitude and longitude column. |
baseGrid |
A RasterLayer or SpatRaster object representing the grid for enforcing one record per cell when byGrid = TRUE. |
byGrid |
Logical. If TRUE then use the rasterLayer passed in baseGrid to select opne record per cell. If FALSE (default) then ignore anything passed in baseGrid and remove exact duplicates based on there coordinates. |
quiet |
Logical. If TRUE then emit some progress message. If FALSE (default) procede quietly. |
A version of data with duplicates removed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.