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.

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)

vandomed/dvmisc documentation built on Oct. 2, 2020, 9:50 p.m.