R/myf.R

Defines functions myf

Documented in myf

#' My function of squares and cubes
#'
#' produces list of squares and cubes
#'
#' this is a part of the introduction to working on packages
#'
#' @param x a vector
#'
#' @return a lot of vectors in the form of a vector object
#' @export
#'
#' @examples
#' x=1:4; myf(x)
myf = function(x){
  obj1 = x^2
  obj2 = x^3
  list(square=obj1, cube=obj2)
}
leahpom/math4753 documentation built on Jan. 17, 2020, 12:22 a.m.