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(10, 2)

mult <- function(x, y){
  product <- x*y
  if (is.numeric(product) == FALSE){
    return("ERROR - non-numeric value entered")
  }
  return(product)
}
kateparrish9887/R_package_Parrish documentation built on Dec. 21, 2021, 5:20 a.m.