#' Convert Degrees to Radians and Vice Versa
#'
#' @description Base R doesn't have a native function to change degrees to but
#' requires radians for trig functions. These are to help handle that.
#'
#' @param deg Input degree you want to change to radians.
#' @param rad Input radian you want to change to degrees.
#'
#'
#' @section Creation notes: First created in 2019-Feb in FIAspatialAdditions.R
#' for my BigDataFNR class presentation on working with spatial data in R in
#' my purdueResearch repo.
#'
#' @rdname deg2rad
#' @export
deg2rad <- function(deg) {
(deg * pi) / (180)
}
#' @rdname deg2rad
#' @export
rad2deg <- function(rad) {
(rad * 180) / (pi)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.