GetNearestCovariate: Function to get covariate values nearest the data/integration...

View source: R/GetNearestCovariate.R

GetNearestCovariateR Documentation

Function to get covariate values nearest the data/integration point

Description

Function to get covariate values nearest the data/integration point

Usage

GetNearestCovariate(points, covs)

Arguments

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.

Value

A SpatialPointsDataFrame with the original points plus the data from the closest point.

If there are ties, this will use the first element.


oharar/PointedSDMs documentation built on July 11, 2022, 11:20 a.m.