Description Usage Arguments Examples
Convert Cartesian coordinates to polar. Returns a dataframe of two columns named r and theta. This always returns a theta between -pi/2 and pi/2. Note that polar.to.cartesian may not return the starting x, y submitted to cartesian.to.polar due to problems with signs. It will work if theta is kept positive (ie, quadrant 1).
1 | cartesian.to.polar(x, y)
|
x |
Coordinates. |
y |
input vector of y coordinates (same length as x) |
1 2 3 | ## Not run:
cartesian.to.polar(2,4)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.