nnangle_cone: nearest neighbour angles and distances given that angles are...

View source: R/nnangle_in_cone.R

nnangle_coneR Documentation

nearest neighbour angles and distances given that angles are in a cone

Description

nearest neighbour angles and distances given that angles are in a cone

Usage

nnangle_cone(x, unit, theta, from, to, antipodal = FALSE)

Arguments

x

matrix of coordinates

unit

direction of the cone

theta

angle or width of the cone

from

indices from which to compute

to

indices in which look for nearest neighbour

antipodal

use antipodally symmetric vectors? default: FALSE

The values in 2d are (azimuth, distance). The values in 3d are physical coordinate system (azimuth, inclination, distance)

The angle is inside the cone. NA if no neighbour is found.


antiphon/Kdirectional documentation built on Feb. 13, 2023, 6:26 a.m.