| polarise | R Documentation |
Convert Cartesian coordinates to Polar coordinates
polarise(x, norm = 2)
x |
A matrix with exactly 2 rows representing the x and y coordinates. |
norm |
A numeric value specifying the L-p norm for calculating the radius. Defaults to 2 (Euclidean). |
A list containing:
r |
The calculated radii (distances from origin). |
phi |
The angles in radians, adjusted to the range [0, 2*pi]. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.