car2pol: Cartesian to polar coordinates

Description Usage Arguments Value Author(s)

View source: R/car2pol.R

Description

Function for transforming cartesian coordinates to polar coordinates.

Usage

1
car2pol(X, deg = FALSE, unitlength = TRUE)

Arguments

X

A numerical vector or matrix whos columns constitute the x and y cartesian coordinates, respectively. A vector should have 2 entries and a matrix should have 2 columns.

deg

Logical value indicating whether the output should be in randians or degrees. Radian is default.

unitlength

Logical values indicating if the points should be returned with unit length. If TRUE (default) r will be set to 1.

Value

A data.frame with 2 columns angle and radial distance.

Author(s)

Andreas Dyreborg Christoffersen andreas@math.aau.dk


adchSTATS/spatstatciradd documentation built on May 3, 2019, 8:32 p.m.