R/rad2deg.R

Defines functions rad2deg

Documented in rad2deg

#' Radians to Degree Angles conversion function
#'
#' \code{rad2deg} converts radian heading data to degree values.
#'
#' @param heading    The value in radians of the heading.
#'
#' @return The function returns the heading value converted in degrees
#'
#' @usage rad2deg(heading)
#' 
#' @examples
#' rad2deg(heading = 1.4)
#' 

# Heading edit
# Edits the heading data

rad2deg <- function(heading) {
  heading <- heading * (180/pi)
  return(heading)
}

Try the vmsbase package in your browser

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

vmsbase documentation built on July 1, 2020, 6 p.m.