R/testf.R

Defines functions testf

Documented in testf

#' Test Function
#'
#' Takes a vector and returns its square. Also gives a statement as to what the purpose is
#'
#' @param x a vector
#'
#' @return a vector of squared values in the form of a vector
#' @return a string of characters
#'
#' @export
#'
#' @examples
#' x=1:30; testf(x)
testf <- function(x){
  x.sq <- x^2
  char <- "This is a test to see that I have correctly set up my package and built a basic workable function"
  test.list <- list("x squared" = x.sq, char)
  return(test.list)
}
leahpom/F2020Projt3LP documentation built on Jan. 1, 2021, 8:17 a.m.