distanceToClosest: Distance to closest

Description Usage Arguments Value

View source: R/data_extraction_functions.R

Description

Function which calculates the distance to a closest spatial object. Anything that works with rgeos::gDistance will work in this function. loc will be reprojected to the projection of the lines.shapefile and the units will be of that projection.

Usage

1
distanceToClosest(loc, lines.shapefile)

Arguments

loc

spatial object (with valid proj4string)

lines.shapefile

spatial object for which to calculate minimum distance

Value

data.frame with distance; named based on lines.shapefile input (units are assumed to be meters; if feet back transform output by 0.3048006096 m/ft)


cole-brokamp/aiRpollution documentation built on May 13, 2019, 8:50 p.m.