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
mult <- function(x,y){
  product <- x*y
  if(is.numeric(product)){return(product)}
  else{return("ERROR - Non-numeric")}
} 
dustinmacri/R_package_Macri documentation built on Dec. 20, 2021, 2:16 a.m.