R/deg2rad.R

Defines functions deg2rad

Documented in deg2rad

#' @title Convert degrees to radians
#' @description From \url{http://www.r-bloggers.com/great-circle-distance-calculations-in-r/}
#' @param deg Degrees as decimal degrees, required numeric vector
#' @return Radians, as numeric vector same length as input
#' @export
deg2rad <- function(deg) return(deg*pi/180)
ejanalysis/proxistat documentation built on Dec. 31, 2019, 11:51 p.m.