Head and tail in two dimensions

Share:

Description

Restrict not only the number of rows, but also the number of columns.

Usage

1
2
3
head2(x, m = 6, n = NULL)

tail2(x, m = 6, n = NULL)

Arguments

x

data.frame or matrix

m

integer. Number of rows to keep.

n

integer. Number of columns to keep.

Author(s)

kaiyin

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.