rad: degrees to radians

Description Usage Arguments Details Value Examples

Description

This function converts angular locations from degrees to radians

Usage

1
rad(x, m = FALSE, rev = FALSE)

Arguments

x

numeric values in degrees

m

logical should values > 360 degrees be divided modulo

rev

logical if TRUE list objekt is returnd with number of revolutions

Details

no details

Value

values in radians; optionaly number of revolutions

Examples

1
2
3
4
5
6
7
8
9
## RIASEC angular locations in degrees to radians
rad(c(60,120,180,240,300,360))
rad(720)
rad(720,TRUE)
rad(360)
rad(360,TRUE)
# 810 degrees is two full revolutions and a quater
# which is 1.570796 radians or 90 degrees - check it!
rad(810,TRUE,TRUE) 

holland documentation built on Sept. 5, 2021, 5:08 p.m.