Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

51_grouped_head

Grouped Head


Description

Grouped head function for data.frames.

Usage

## S3 method for class 'data.frame'
ghead(x, nh=3, ..., group.by)

Arguments

x

A data.frame.

nh

Integer, the number of rows per group.

group.by

A string, giving the name of the grouping variable.
If missing, defaults to the first string or factor, with non-unique values.

...

Ignored.

Value

Currently, returns a formatted character matrix, however, it's possible this may change in the future.

See Also

Examples

ghead (iris)

vectools

Advanced Vector Toolkit

v0.2.0
GPL (>= 2)
Authors
Abby Spurdle
Initial release
2020-10-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.