R/hello.R

Defines functions sq_root circle_area

Documented in circle_area sq_root

#' Title
#'
#' @param x
#'
#' @return
#' @export
#'
#' @examples
#' sq_root(4)
#' sq_root(25)
sq_root <- function(x) {

  print(sqrt(x))
}

#' Title
#'
#' @param r
#'
#' @return
#' @export
#'
#' @examples
#' circle_area(3)
circle_area <- function(r){

  a <- pi*r^2
  print(a)

}
#two functions added
advika18/DATA-598-WI20-week-7 documentation built on March 7, 2020, 11:19 p.m.