R/genVals.R

Defines functions getVals

Documented in getVals

#' Generates strings of text for the use in markdown documents

getVals <- function(x, 
  chunk.names=c("statistic", "p.value")) {
  if (length(x) < 1)
    stop("x has length < 1")
  sapply(chunk.names, function(nm)
    sapply(list(x), "[[", nm))
}
eduardohet/resulteR documentation built on Aug. 9, 2021, 3:02 a.m.