R/convert.R

Defines functions convert_to_pace

Documented in convert_to_pace

#' Convert m/s to s/100m
#'
#' It converts speed, in m/s, to pace, in s/100m.
#'
#' @param speed The speed to convert to pace.
#'
#' @return the converted pace
#' @keywords internal
convert_to_pace <- function(speed) {
  out <- 100 / speed
  out <- round(x = out, digits = 1)

  out
}

Try the lactater package in your browser

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

lactater documentation built on Nov. 16, 2023, 5:10 p.m.