R/add.R

Defines functions add

Documented in add

#' Test algorithm
#'
#' @param a The first number to add
#' @param b The seccond number to add
#'
#' @return Returns the sumatory of the frist 'a' and seccond 'b' numbers
#' @export
#'
#' @examples add(1,2)
add = function(a, b){
  if((class(a) != "numeric") || (class(b) != "numeric")){
    stop("Non numeric input")
  }
   x = a + b
   return(x)
}
rubenjmunoz/Test_tester_test01 documentation built on Sept. 7, 2018, 12:55 a.m.