R/cat_counter.R

#' Cat Counter
#' 
#' This function is a cat calculator
#' @param total_cats Enter the total number of cats you have.
#' @return The total sum of cats that you have and that I have.
#' @examples cat_counter(total_cats = 5)
#' @export


cat_counter <- function(total_cats){
  y <- sample(x = 1:100, size = 1)
  message(paste0("\n\tOkay, well I have a total of ", y, " cats" ))
  message(paste0("\n\tThis makes a total of ", total_cats + y, " cats"))
}
mfabla/cats documentation built on May 16, 2019, 9:15 p.m.