head {oce} | R Documentation |
Returns the first or last parts of an oce
object.
## S3 method for class 'adp' head(x, n = 6L, ...) ## S3 method for class 'adp' tail(x, n = 6L, ...)
x |
an object |
n |
a single integer. If positive, size for the resulting
object: number of elements for a vector (including lists), rows for
a matrix or data frame or lines for a function. If negative, all but
the |
... |
arguments to be passed to or from other methods. |
For adp
objects, returns first or last profiles, as indicated.
An object like x
but generally smaller.
Dan Kelley
library(oce) data(adp) start <- head(adp) plot(start)