R/subtract.R

Defines functions subtract

Documented in subtract

#'@title Subtract two vectors
#'@description
#'This function subtracts one numeric vector from another
#'and returns a numeric vector
#'
#'@param x a numeric vector
#'@param y a numeric vector
#'
#'@return a numeric vector
#'
#'@export
#'
#'@examples
#'subtract(2, 3)
#'subtract(mtcars$mpg, mtcars$hp)

subtract <- function(x, y){
  x - y
}
larsdelin/mathR documentation built on Dec. 21, 2021, 8:50 a.m.