headtail: Return the First and Last Part of an Object

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/functions.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.

Details

NA

Value

Same class as x.

Note

NA

Author(s)

Dane R. Van Domelen

References

Acknowledgment: This material is based upon work supported by the National Science Foundation Graduate Research Fellowship under Grant No. DGE-0940903.

See Also

inside

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 Dec. 29, 2017, 3:01 a.m.