Learn R Programming

circular (version 0.4-93)

minusPiPlusPi: return angles in the [-pi,pi] interval.

Description

return angles in the (-pi,pi] interval.

Usage

minusPiPlusPi(x)

Arguments

x

an object of class circular.

Value

a circular object with values in the interval (-pi,pi].

Examples

Run this code
# NOT RUN {
  x <- circular(c(0, 90, 180, 270), units="degrees")
  minusPiPlusPi(x)
# }

Run the code above in your browser using DataLab