These methods try to provide output that's ready for R Markdown. Note that they are not all documented; most of them are quite straightforward.
# S3 method for freq
pander(x, ...)
# S3 method for meanDiff
pander(x, digits=x$digits, powerDigits=x$digits + 2, ...)
# S3 method for normalityAssessment
pander(x, headerPrefix = "#####", suppressPlot = FALSE, ...)
# S3 method for dataShape
pander(x, digits=x$input$digits, extraNotification=TRUE, ...)
# S3 method for associationMatrix
pander(x, info = x$input$info, file = x$input$file, ...)
# S3 method for crossTab
pander(x, digits = x$input$digits,
pValueDigits=x$input$pValueDigits, ...)
# S3 method for oneway
pander(x, digits = x$input$digits,
pvalueDigits=x$input$pvalueDigits,
headerStyle = "**",
na.print="", ...)
# S3 method for regr
pander(x, digits=x$input$digits,
pvalueDigits=x$input$pvalueDigits, ...)
# S3 method for descr
pander(x, headerPrefix = "", headerStyle = "**", ...)
# S3 method for examine
pander(x, headerPrefix = "", headerStyle = "**",
secondaryHeaderPrefix = "", secondaryHeaderStyle =
"*", ...)
# S3 method for examineBy
pander(x, headerPrefix = "", headerStyle = "**",
secondaryHeaderPrefix = "", secondaryHeaderStyle =
"*", tertairyHeaderPrefix = "--> ",
tertairyHeaderStyle = "", separator = paste0("\n\n",
repStr("-", 10), "\n\n"), ...)
# S3 method for frequencies
pander(x, prefix = "###", ...)
The object to print.
The number of significant digits to print.
Number of digits to use when printing the power.
Prefix for headers, can be used to output headers for pandoc using R Markdown by specifying e.g. '####' for a level 4 header.
A character value to pre- and append to the header. This can be used to
make the header appear bold ('**') or italic ('*') when not using an
actual header (see headerPrefix
).
Separator to show between sections of output.
Whether to suppress printing plots.
Output to produce; see /code/linkrMatrix for details.
Output to produce and file to write to; see /code/linkassociationMatrix for details.
Whether an extra notification about the type of skewness and kurtosis returned by dataShape is shown.
The number of digits to show for p-values; smaller p-values will be shown as <.001 or <.0001 etc.
What to print for missing values, for example for a oneway anova table.
Additional arguments that are passed on to the print functions when it is called.
These printing methods use cat
, cat0
, and grid.draw
to print stuff.
# NOT RUN {
userfriendlyscience:::pander.oneway(oneway(y=ChickWeight$weight, x=ChickWeight$Diet));
# }
Run the code above in your browser using DataLab