R/myf.R

Defines functions myf

Documented in myf

#' Square function
#'
#' takes a vector and returns a vector of squared components
#'
#' @param x
#'
#' @return a square component in the form of vector
#' @export
#'
#' @examples
#' x = 1:30;myf(x)
myf=function(x){
  x^2
}
1105788551/EX2 documentation built on Jan. 14, 2020, 12:22 a.m.