R/hello.R

Defines functions plus_two

#' Adds two to any number
#'
#' We _can_ use markdown in roxy documentation.
#' That is **very** handy. It's easy to indicate `functions()`.
#' Markdown tables, lists are also possible.
#'  See more about the markdown markup at the
#' [Commonmark web site](http://commonmark.org/help).
#' We can easily add images also, here is an irrelvant Numbat:
#' ![](numbat.jpg "We can show images")
#'
#' @param x an integer or double; any number
#'
#' @return a number
#' @export
#'
#' @examples
#' plus_two(1)
#'
plus_two <- function(x) {

  x + 2

}
sanjanagupta16/DATA-598-WI20-week-7 documentation built on March 8, 2020, 11:15 p.m.