Learn R Programming

oce (version 0.8-3)

as.drifter: Coerce data into drifter dataset

Description

Coerces a dataset into a drifter dataset.

Usage

as.drifter(time, longitude, latitude, salinity, temperature, pressure, 
           id, filename="", missingValue)

Arguments

time
time of observation
longitude
longitude of observation
latitude
latitude of observation
salinity
salinity of observation
temperature
temperature of observation
pressure
pressure of observation
id
drifter identifier
filename
source filename
missingValue
optional missing value, indicating data that should be taken as NA.

Value

  • An object of class "drifter".

Details

This function assembles vectors into a drifter object, e.g. so that plot.drifter can be used.

See Also

The documentation for drifter-class explains the structure of drifter objects, and also outlines the other functions dealing with them.