report.data.frame {repmod} | R Documentation |
Report tables of summary data
Description
Creates a report table ready for publication.
Usage
## S3 method for class 'data.frame'
report(
x,
by = NULL,
file = NULL,
type = "word",
digits = 2,
digitscat = digits,
print = TRUE,
...
)
Arguments
x |
A data.frame object |
by |
Grouping variable for the report |
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() |
Value
Returns a summary table of the data in publication-friendly format
Examples
report(iris)
(reporTable<-report(iris, by="Species"))
class(reporTable)
[Package repmod version 0.1.7 Index]