Learn R Programming

oce (version 0.9-18)

head: Ends of oce Objects

Description

Returns the first or last parts of an oce object.

Usage

## S3 method for class 'adp':
head(x, n = 6L, \dots)
## S3 method for class 'adp':
tail(x, n = 6L, \dots)

Arguments

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 n last/first number of elements of
...
arguments to be passed to or from other methods.

Value

  • An object like x but generally smaller.

Details

For adp objects, returns first or last profiles, as indicated.

Examples

Run this code
library(oce)
data(adp)
start <- head(adp)
plot(start)

Run the code above in your browser using DataLab