R/sqr_root.R

Defines functions sqr_root

#' Square Root Function
#'
#' @param x
#' a numerical value that is 0 or positive
#' @return the square root of the input number
#' @export
#'
#' @examples
#' sqr_root(4)
sqr_root <- function(x) {
  x^0.5
}
XiaoluQianUW/DATA-598-WI20-week-7 documentation built on March 7, 2020, 11:19 p.m.