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),
  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")

Try the dataMaid package in your browser

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

dataMaid documentation built on Oct. 8, 2021, 9:08 a.m.