View source: R/GetNearestCovariate.R
GetNearestCovariate | R Documentation |
Function to get covariate values nearest the data/integration point
GetNearestCovariate(points, covs)
points |
Points for which we need covariates. Either a SpatialPoints* object or a matrix with coordinates in columns. |
covs |
Covariates, with coordinates in first and second columns, or a SpatialPointsDataFrame object. |
A SpatialPointsDataFrame with the original points plus the data from the closest point.
If there are ties, this will use the first element.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.