Learn R Programming

bazar (version 1.0.11)

top: Top or bottom element of an object

Description

top(x) is an alias for head(x, 1L). bot(x) is an alias for tail(x, 1L).

Usage

top(x)

bot(x)

Arguments

x

an object.

Value

An object (usually) like x but generally smaller.

See Also

head and head from package utils