AddDistToRangeToSpatialPoints: Function to add distance to a polygon to a spatial points...

View source: R/AddDistToRangeToSpatialPoints.R

AddDistToRangeToSpatialPointsR Documentation

Function to add distance to a polygon to a spatial points object

Description

Function to add distance to a polygon to a spatial points object

Usage

AddDistToRangeToSpatialPoints(data, polynoms, scale = FALSE)

Arguments

data

SpatialPoints* object

polynoms

A spatialpolygonsdataframe.

scale

Should the distance be scaled by dividing by the mean of the non-zero distances? (defaults to FALSE, either logical or numeric).

Value

A spatial points data frame with distances to the polygon added.


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