car2pol: Convert from cardinal to polar coordinates

Description Usage Arguments Value See Also Examples

Description

Convert from cardinal to polar coordinates

Usage

1
car2pol(x, orig = c(0, 0))

Arguments

x

matrix or data frame with columns [x,y]

orig

vector with the x,y coordinates of the origin, defaults to (0,0)

Value

a data.frame with columns [theta,rho], with theta following trigonometric conventions and rho in the same unit as the input x and y

See Also

link{pol2car} for the reverse

Examples

1
2
3

jiho/discr documentation built on May 19, 2019, 9:30 a.m.