powered by
From coordinates of the end point of a vector in 2 dimensions to the angle between this vector and the x-axis
coord2rad(x, y = NULL, control.circular = list())
a matrix or a data.frame with two columns if y is NULL otherwise a vector.
matrix
data.frame
NULL
a vector.
the attribute of the resulting object.
an object of class circular
circular
# NOT RUN { set.seed(1234) x <- cbind(rnorm(20), rnorm(20)) y <- coord2rad(x) # }
Run the code above in your browser using DataLab