Learn R Programming

dostats (version 1.3.3)

first: Head/Tail shortcuts

Description

Shortcuts for head(x,1) and tail(x, 1)

Usage

first(x, ..., n = 1)

last(x, ..., n = 1)

Arguments

x

vector object

...

passed on to head or tail

n

the new number to take of only one.