Learn R Programming

poorman (version 0.2.0)

print.grouped_data: Print a grouped data.frame

Description

A print method for grouped data.frames. Uses the standard print.data.frame() method but also reports the groups.

Usage

# S3 method for grouped_data
print(
  x,
  ...,
  digits = NULL,
  quote = FALSE,
  right = TRUE,
  row.names = TRUE,
  max = NULL
)

Arguments

x

An object of class grouped_data.

...

Additional arguments to print().

digits

the minimum number of significant digits to be used: see print.default.

quote

logical, indicating whether or not entries should be printed with surrounding quotes.

right

logical, indicating whether or not strings should be right-aligned. The default is right-alignment.

row.names

logical (or character vector), indicating whether (or what) row names should be printed.

max

numeric or NULL, specifying the maximal number of entries to be printed. By default, when NULL, getOption("max.print") used.

Examples

Run this code
# NOT RUN {
mtcars %>% group_by(cyl, am) %>% print()

# }

Run the code above in your browser using DataLab