cart2pol | R Documentation |
cart2pol as a step in converting cartesian coordinates into polar coordinates this calculates the angle, in degrees, from x y values
cart2pol(x)
x |
either a vector of two values of a matrix of pairs of values |
a single angle of vector of angles
## Not run:
cart2pol(c(3,3)) # should be 45
dat <- matrix(c(3,4,5,7),nrow=2,ncol=2,byrow=TRUE)
print(dat)
cart2pol(dat) # should be 36.8699 twice.
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.