powered by
Simply head and tail combined.
head
tail
headtail(x, ...)
Input object.
Additional arguments to pass to head and tail functions.
Same class as x.
x
# NOT RUN { # 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) # }
Run the code above in your browser using DataLab