headtail: Head and tail rows

View source: R/explore.R

headtailR Documentation

Head and tail rows

Description

Return the first and last 'n' rows of a table.

Usage

headtail(data, n = 3)

Arguments

data

A data frame or data table.

n

Number of rows to show from the start and end.

Value

A basetable containing the selected rows.


basetable documentation built on Sept. 18, 2026, 9:13 a.m.