File: coord2rad.Rd

package info (click to toggle)
r-cran-circular 0.5-1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,492 kB
  • sloc: ansic: 464; fortran: 69; sh: 13; makefile: 2
file content (33 lines) | stat: -rw-r--r-- 773 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
\name{coord2rad}
\alias{coord2rad}
\title{
  Angles between a vector and the x-axis
}
\description{
  From coordinates of the end point of a vector in 2 dimensions to the angle between this vector and the x-axis
}
\usage{
coord2rad(x, y = NULL, control.circular = list())
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{x}{a \code{matrix} or a \code{data.frame} with two columns if y
    is \code{NULL} otherwise a vector.}
  \item{y}{a vector.}
  \item{control.circular}{the attribute of the resulting object.}
}
\value{
an object of class \code{\link{circular}}  
}
\author{
Claudio Agostinelli and Frederick T. Wehrle  
}

\seealso{
\code{\link{circular}}  
}
\examples{
set.seed(1234)
x <- cbind(rnorm(20), rnorm(20))
y <- coord2rad(x)
}