Prints out the contents of an object created by summarizeFactors in the style of base::summary
Prints out the contents of an object created by summarizeFactors in the style of base::summary
An object with class "summarizedFactors" is the input. Such an object should be created with the function rockchalk::summarizeFactors. Each element in that list is then organized for printing in a tabular summary. This should look almost like R's own summary function, except for the additional information that these factor summaries include.
formatSummarizedFactors(x,...)
Arguments
x: A summarizedFactors object produced by summarizeFactors
...: optional arguments. Only value currently used is digits, which defaults to 2.
Returns
A table of formatted output
Examples
dat <- data.frame(xcat1 = gl(10,3), xcat2 = gl(5,6))summarizeFactors(dat, maxLevels =8)formatSummarizedFactors(summarizeFactors(dat))