Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

etoa

Transform unit vectors to angular data


Description

Transform unit vectors to angular data.

Usage

etoa(x)

Arguments

x

A numerical matrix with directional data, i.e. unit verctors.

Details

from the Euclidean coordinates the data are mapped to angles, expressed in rads.

Value

A list including:

mu

A matrix with angles. The number of columns is one less than that of the original matrix.

Author(s)

Michail Tsagris

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

References

https://en.wikipedia.org/wiki/N-sphere#Spherical_coordinates

See Also

Examples

x <- rvmf(10, rnorm(3), 5)
y <- etoa(x)

Directional

A Collection of R Functions for Directional Data Analysis

v4.9
GPL-2
Authors
Michail Tsagris, Giorgos Athineou, Anamul Sajib, Eli Amson, Micah J. Waldstein
Initial release
2021-03-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.