R/triple_sum.R

#' Sum of three numbers
#'
#' @param x double
#' @param y double, default to 0
#' @param z double, default to 0
#'
#' @return \code{triple_sum} returns x + y + z
#' @export
#'
#' @examples
#' triple_sum(1, 2, 3)
triple_sum <- function(x, y = 0, z = 0){
  x + y + z
}
abichat/testsotr documentation built on May 9, 2019, 2:36 p.m.