R/double.R

#' A Doubling Function
#'
#' Sometimes you just need twice as much. This function can provide that for any 
#' numerical vector passed in.
#' 
#' Additional paragraph to make sure we have twice as much verbage.
#' 
#' @param x what you need twice as much of
#' @keywords simple
#' @export
#' @examples 
#' double(5)
#' double(3:10)

double <- function(x) 2*x
spgarbet/example-R-package documentation built on May 30, 2019, 7:58 a.m.