R/deg2rad.R

Defines functions deg2rad

Documented in deg2rad

#' Converts degrees to radians
#' @param deg - decimal degree to be converted to radians
#' @return Returns the degree in radians
#' @examples
#' deg2rad(45)
#' @references
#' [1]Originally from http://www.r-bloggers.com/great-circle-distance-calculations-in-r/
#' @export
deg2rad <- function(deg) return(deg*pi/180)

Try the GeoRange package in your browser

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

GeoRange documentation built on June 20, 2017, 9:03 a.m.