R/double.R

Defines functions Double

Documented in Double

#' Double
#'
#' Compute the Double value of a vector
#'
#' The Double is calculated by multiplying each value by 2.
#'
#' @param number A numeric vector
#'
#' @return A vector containing the Double values.
#' @export
#'
#' @examples
#' Double(runif(3))
Double <- function(number) {
  return(2 * number)
}
valleevincent/FormationGit documentation built on May 14, 2019, 4:05 a.m.