R/knots2kmh.R

Defines functions kno2kmh

Documented in kno2kmh

#' Knots to Km/h speed conversion function
#'
#' \code{kno2kmh} converts speed in knots to km/h values.
#'
#' @param speed    The value in knots of the speed.
#'
#' @return The function returns the speed value converted in km/h
#'
#' @usage kno2kmh(speed)
#' @examples
#' kno2kmh(speed = c(3, 4.5, 5))
#'

# KNOTS2KMH
# Converts speed from knots to km/h

kno2kmh <- function(speed) {
  speed <- speed * 1.852

  return(speed)
}
vmsbase/R-vmsbase documentation built on May 21, 2020, 9:54 a.m.