R/cal.R

Defines functions subtract sum hello

Documented in hello subtract sum

# Hello, world!

hello <- function() {
  print("Hello, world!")
}

#' Function to Sum
#'
#' This function is going to sum
#'
#' @param a A number.
#' @param b It's another number.
#'
#' @examples
#' sum (2, 3)
#'
#' on the console returns [5]

#' @export
sum <- function(a, b) {
  a + b
}

#' Function to Subtract
#'
#' This function is going to subtract
#'
#' @param a A number.
#' @param b It's another number.
#'
#' @examples
#' subtract (2, 3)
#'
#' on the console returns [-1]

#' @export
subtract <- function(a, b) {
  a - b
}
mecarolme/calculum documentation built on Dec. 21, 2021, 4:52 p.m.