zero_to_2pi | R Documentation |
[-pi, pi]
or [0, 2*pi]
Wrap angles into [-pi, pi]
or [0, 2*pi]
zero_to_2pi(x) minuspi_to_pi(x)
x |
numeric vector or matrix or data.frame. |
minuspi_to_pi
wraps x
into [-pi, pi]
,
while zero_to_pi
wraps x
into [0, 2*pi]
.
dat <- matrix(runif(100, -pi, pi), ncol=2) dat1 <- zero_to_2pi(dat) dat2 <- minuspi_to_pi(dat1) all.equal(dat, dat2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.