R/mult.R

Defines functions mult

Documented in mult

#' Multiply together two numbers
#' 
#' @param x A number
#' @param y Another number
#' @return product The product of multiplying x and y
#' @usage
#' mult(4,5)
#' mult(5,3)

mult<- function(x,y){
  product <- x*y
  if (is.numeric(product) == FALSE){
    return("ERROR - non-numeric")
  }
  return(product)
}
sydneyhemphill/R_package_Hemphill documentation built on Dec. 23, 2021, 6:46 a.m.