ht: Return the First and Last Rows or Elements of an Object

Description Usage Arguments Examples

Description

This function shows the first and last n rows/elements of an object by combining utils::head and utils::tail. It is supposed to be used only while working interactively. Returns NULL invisibly. Also works with tibbles, but returns a data.frame in that case.

Usage

1
ht(x, n)

Arguments

x

An object (usually a data.frame, matrix or vector)

n

A single positive integer. The number of rows/elements to print of the head and tail of the object.

Examples

1

Thie1e/convenience documentation built on May 9, 2019, 4:40 p.m.