46_grouped_head: Grouped Head

Description Usage Arguments Value See Also Examples

Description

Grouped head function for data.frame(s).

Usage

1
2
## S3 method for class 'data.frame'
ghead(v, nh=3, ..., gname)

Arguments

v

A data.frame.

nh

Integer, the number of rows per group.

gname

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

headt.data.frame

Examples

1
ghead (iris)

vectools documentation built on June 7, 2021, 9:08 a.m.