R/square.R

Defines functions sqr_function

#' Square function
#'
#' @param x
#'a numerical value that is a real number
#' @return the square of the input number
#' @export
#'
#' @examples
#' sqr_function(4)
sqr_function = function(x){
  x^2
}
XiaoluQianUW/DATA-598-WI20-week-7 documentation built on March 7, 2020, 11:19 p.m.