removeDuplicates: Remove duplicate occurrence records

View source: R/removeDuplicates.R

removeDuplicatesR Documentation

Remove duplicate occurrence records

Description

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

Usage

removeDuplicates(data = NULL, baseGrid = NULL, byGrid = FALSE, quiet = FALSE)

Arguments

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.

Value

A version of data with duplicates removed


peterbat1/fitMaxnet documentation built on Sept. 17, 2024, 10:50 p.m.