report.data.frame | R Documentation |
Creates a report table ready for publication.
## S3 method for class 'data.frame'
report(
x,
by = NULL,
remove.by = FALSE,
file = NULL,
type = "word",
digits = 2,
digitscat = digits,
print = TRUE,
...
)
x |
A data.frame object |
by |
Grouping variable for the report |
remove.by |
Remove grouping variable from the report table? |
file |
Name of the file to export the table |
type |
Format of the file |
digits |
Number of decimal places |
digitscat |
Number of decimal places for categorical variables (if different to digits) |
print |
Should the report table be printed on screen? |
... |
further arguments passed to make_table() |
Returns a summary table of the data in publication-friendly format
report(iris)
(reporTable<-report(iris, by="Species"))
class(reporTable)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.