Learn R Programming

repmod (version 0.4.11)

report.data.frame: Report tables of summary data

Description

Creates a report table ready for publication.

Usage

# S3 method for data.frame
report(
  x,
  by = NULL,
  remove.by = FALSE,
  file = NULL,
  type = "word",
  digits = 2,
  digitscat = digits,
  print = TRUE,
  ...
)

Value

Returns a summary table of the data in publication-friendly format

Arguments

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()

Examples

Run this code
report(iris)
(reporTable<-report(iris, by="Species"))
class(reporTable)

Run the code above in your browser using DataLab