nnangle | R Documentation |
nearest neighbour angles and distances
nnangle(x, from, to)
x |
Matrix of coordinates, n rows and d columns |
If 2d, returns the angle in [-pi,pi]. In 3d also the angle from xy-plane in [0,pi]
The values in 2d are (azimuth, distance). The values in 3d are physical coordinate system (azimuth, inclination, distance)
x <- matrix(runif(200), ncol = 2) nn <- nnangle(x) summary(nn)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.