headtail {dvmisc} | R Documentation |
Simply head
and tail
combined.
headtail(x, ...)
x |
Input object. |
... |
Same class as x
.
# 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)