R/degree_conversion.R

Defines functions degree_conversion

Documented in degree_conversion

#' Convert degrees to radians
#'
#' @description Convert degrees to radians.
#'
#' @param deg Degree value to convert.
#'
#' @return Value in radians.
#' @export
#'
#' @examples # Convert 90 degrees into radians
#' degree_conversion(90)
degree_conversion <- function(deg) {
  checkmate::check_numeric(deg)
  (deg * pi) / (180)
}

Try the carbonr package in your browser

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

carbonr documentation built on Oct. 17, 2024, 1:06 a.m.