dist_point_to_vector: Calculation of the geodesic of a point to multiple points

View source: R/dist_point_to_vector.R

dist_point_to_vectorR Documentation

Calculation of the geodesic of a point to multiple points

Description

This function calculates the geodesic of a point to multiple points given the coordinate information. It is a wrapper of geodist::geodist_vec().

Usage

dist_point_to_vector(plon, plat, vlon, vlat)

Arguments

plon

Numeric. The longitude of a point.

plat

Numeric. The latitude of a point.

vlon

Numeric. A vector of longitude values.

vlat

Numeric. A vector of latitude values.

Value

Numeric. The geodesic of a point to multiple points in meters.

Examples


# Define vlon and vlat
vlon <- c(141.12, 141.13)
vlat <- c(-37.1, -37.0)

# Calculate the geodesic
dist_point_to_vector(141.12, -37.1, vlon, vlat)


spotoroo documentation built on Aug. 21, 2023, 9:10 a.m.