R/myf.R

Defines functions myf

Documented in myf

#' Square function
#'
#' Takes a vector and returns a vector of squared components
#'
#' The function is an elementary example of function creation and can be massively enhanced
#' @param x
#'
#' @return a Vector of squared components in the form of a vector object
#' @export
#'
#' @examples
#' x=1:30; myf(x)
myf=function(x){
  x^2
}
MATHSTATSOU/MATH4753PROJ1 documentation built on Jan. 4, 2020, 12:14 a.m.