https://github.com/cran/pracma
Tip revision: 267abaa96cae63dd7872bb21b2613bd067b0a9f4 authored by Hans W. Borchers on 30 January 2018, 13:20:01 UTC
version 2.1.4
version 2.1.4
Tip revision: 267abaa
deg2rad.R
##
## d e g 2 r a d . R Angle Conversion
##
deg2rad <- function(deg) {
stopifnot(is.numeric(deg))
( rad <- (pi/180)*deg )
}
rad2deg <- function(rad) {
stopifnot(is.numeric(rad))
( deg <- rad/(pi/180) )
}