R/allXFunctions.R

Defines functions allXFunctions

#Make a functionSummary of all functions of type X, that is,
#coerce their names, description attributes and classes attributes
#into a list.
#Called from allVisualFunction(), allSummaryFunctions(), allCheckFunctions().
allXFunctions <- function(X) {
  allF <- Filter(function(x) X %in% class(get(x)), union(ls(envir = .GlobalEnv),
                                                         ls("package:dataReporter")))
  out <- list(name = allF, description = sapply(allF, function(x) description(get(x))),
              classes = lapply(allF, function(x) classes(get(x))))
  class(out) <- c("functionSummary", "list")
  out
}

Try the dataReporter package in your browser

Any scripts or data that you put into this service are public.

dataReporter documentation built on Nov. 11, 2021, 9:06 a.m.