pol2car: Polar to cartesian coordinates

Description Usage Arguments Value Author(s)

View source: R/pol2car.R

Description

Function for transforming polar coordinates to cartesian coordinates

Usage

1
pol2car(X, deg = FALSE, rep = "std")

Arguments

X

A numerical vector or matrix whos entries constitute polar coordinates. If X is a matrix it should have two columns, consituting the angle and radial distance. If X is a vector it is assumed that all entries are to be considered as angles.

deg

Logical value indicating whether the input is in randians or degrees. Radian is default.

rep

Determine the representation of the polar coordinates. If "std" the angle will range from 0 to 2 * pi. The classical representation of polar coordinates in radians. If "neg" the angle will range from -pi to pi. Deafult is "std".

Value

A data.frame with 2 columns representing the cartesian coordinate set.

Author(s)

Andreas Dyreborg Christoffersen andreas@math.aau.dk


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