head_tail: Return Parts of an Data Frame

View source: R/head_tail.R

head_tailR Documentation

Return Parts of an Data Frame

Description

Only display the specified number of rows and columns of the data frame are extracted, otherwise "..." and abbreviations are used to denote the rest.

Usage

head_tail(data, n = 3L, col_n = 3L)

Arguments

data

an data frame

n

an integer. Specify the number of rows you want to extract. The data is extracted from the beginning and end of the specified number of lines, so the data frame is the specified number of lines x 2 + ellipsis.

col_n

an integer. Specify the number of rows you want to extract. The data is extracted from the beginning and end of the specified number of columns, so the data frame is the specified number of columns x 2 + ellipsis.

Details

If the specified number of rows and columns is greater than the original data frame, the data is display as it is.

Examples

head_tail(iris)


indenkun/infun documentation built on April 17, 2025, 2:52 p.m.