Learn R Programming

oce (version 0.9-18)

time.oce: Extract time from an oce object

Description

Extract time from an oce object

Usage

## S3 method for class 'oce':
time(x, \dots)

Arguments

x
an oce object.
...
possibly contains an argument named which, as explained in Details.

Value

  • A vector of times.

Details

This is a convenience function that isolates the user from the details of details of storage. The behaviour depends on the type of object.
  • advobjects: the times for the velocity observations are returned as a vector of POSIX times.
  • adpobjects: by default, the times of velocity observations are returned. This is also the case ifwhich=1is supplied in the...list. Ifwhich=2is supplied in the...list, the times at which heading was measured are returned; for some instruments, these are not the same as the velocity times.

See Also

Similar accessor functions are heading, pitch, roll, and velocity.

Examples

Run this code
library(oce)
data(adp)
cat("the first time is:", format(time(adp)[1]), "")

Run the code above in your browser using DataLab