Learn R Programming

vectools (version 0.2.0)

51_grouped_head: Grouped Head

Description

Grouped head function for data.frames.

Usage

# S3 method for 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

select, selectf

headt.data.frame

Examples

Run this code
# NOT RUN {
ghead (iris)
# }

Run the code above in your browser using DataLab