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
}
jnguyen01/mathR documentation built on Dec. 21, 2021, 1:14 a.m.