R/functions.R

#' A function
#' 
#' This function adds one to the input.
#' 
#' @param x (numeric) input number
#' 
#' @keywords add
#' @export
#' @examples 
#' function1(2) #becomes 3

function1 <- function(x){
  x + 1
}

#' Another function
#' 
#' This function adds two to the input
#' 
#' @param x (numeric) input number
#' 
#' @keywords add
#' @export
#' @examples 
#' function2(2) #becomes 4

function2 <- function(x){
  x + 2
}
isteves/dummy-package documentation built on May 25, 2019, 6:22 p.m.