headtail: Return the First and Last Part of an Object

Description Usage Arguments Value Examples

View source: R/headtail.R

Description

# Simply head and tail combined into one function.

Usage

1

Arguments

x

Input object.

...

Additional arguments to pass to head and tail functions.

Value

Same class as x.

Examples

1
2
3
4
# Generate data from N(0, 1), sort, and look at smallest and largest 3 values
x <- rnorm(1000)
x.sorted <- sort(x)
headtail(x.sorted, 3)

dvmisc documentation built on May 2, 2019, 5:51 p.m.

Related to headtail in dvmisc...