R/myf.R

Defines functions myf

Documented in myf

#' Square Function
#'
#'Takes a vector and returns the square of each component.
#'
#' @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
}
reza-niazi/MLRpack documentation built on Oct. 16, 2020, 7:30 a.m.