calc_distance: Calculate the distance between two places in m

Description Usage Arguments Details Value Author(s)

View source: R/calc_distance.R

Description

Calculate the distance between two places in m

Usage

1
2
calc_distance(points_from = data.frame(lng = c(), lat = c()),
  points_to = data.frame(lng = c(), lat = c()))

Arguments

points_from

data.frame A data frame with a 'lng' at 'lat' column containing a list of points from where the distance shall be calculated

points_to

data.frame A data frame with a 'lng' at 'lat' column with just a single point that the distance shall be calculated to

Details

Can be found at https://stackoverflow.com/questions/39454249/checking-whether-coordinates-fall-within-a-given-radius?noredirect=1&lq=1

Value

A table of the distances inside the 'nn.dists' column of the table for each point of the points_from input

Author(s)

Sebastian Wolf sebastian@mail-wolf.de


zappingseb/rayshaderanimate documentation built on Dec. 14, 2021, 11:43 p.m.