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)
}

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.