R/deg2rad.R

Defines functions deg2rad

Documented in deg2rad

#' Convert angle in degrees to radians
#' @export
#' @param deg Angle in degrees
#' @return The angle in radians.
#' @examples
#' deg2rad(180)
deg2rad <- function(deg) {
  (deg * pi) / (180)
}

Try the rcicr package in your browser

Any scripts or data that you put into this service are public.

rcicr documentation built on Sept. 27, 2026, 5:07 p.m.