Learn R Programming

summarytools (version 0.3)

print.summarytools: Print method for objects of class summarytools.

Description

Display summarytools objects in the console, in Web Browser or in RStudio's Viewer.

Usage

## S3 method for class 'summarytools':
print(x, method="pander", open=TRUE, \dots)

Arguments

x
summarytools object that was generated with freq, descr or dfSummary.
method
One of pander, viewer or browser. Defaults to pander. If viewer is used outside RStudio, Web Browser will be used instead.
open
Open the generated file with system's default viewer. Defaults to TRUE. Ignored when method equals viewer.
...
Additional arguments (not used for now).

Value

  • NULL when method="pander" ; a file path (returned invisibly) when method="viewer" or method="browser". In the latter case, the html file is passed to shell.exec which opens the file in default browser.

References

https://github.com/dcomtois/summarytools

Examples

Run this code
data(iris)
  print(freq(iris$Species))

Run the code above in your browser using DataLab