CalculateAngleToPoint: CalculateAngleToPoint

Description Usage Arguments Details Value

View source: R/move.R

Description

Calculates absolute angle in radians [0, 2*pi) of origin location to target point

Usage

1
CalculateAngleToPoint(origin_long, origin_lat, target_long, target_lat)

Arguments

origin_long

column name of origin point longitude

origin_lat

column name of origin point latitude

target_long

column name of target point longitude

target_lat

column name of target point latitude

Details

Coordinates must be in identically-scaled units (e.g. UTM meters). If location data is in lat/long, project coordinates to UTM with 'rgdal' package before running this function.

Value

vector of angles


Blakemassey/ibmr documentation built on Dec. 25, 2021, 8:39 a.m.