R/myf.R

Defines functions myf

Documented in myf

#' My function of squares and cubes
#'
#' Produce list of squares and cubes
#'
#' This is a part of the introduction to package making
#'
#' @param x a vector
#'
#' @return a list of vectors
#' @export
#'
#' @examples myf(5)
myf=function(x){
  obj1=x^2
  obj2=x^3
  list(square=obj1,cube=obj2)
}
sammcdonald9914/math4753d documentation built on April 19, 2020, 6:13 p.m.