Learn R Programming

oce (version 0.9-18)

odf-class: Class to store ODF data

Description

Class for data stored in a format used at Canadian Department of Fisheries and Oceans laboratories. This is somewhat unusual amongst oce classes, in that it does not map to a particular instrument, but rather to a storage type; in that sense, it is similar to the bremen-class.

Arguments

Methods

Consider an ODF object named odf.

Accessing metadata. Metadata (contained in the S4 slot named metadata) may be retrieved or set by name, odf[["longitude"]] <- odf[["longitude"]] + 1 corrects a one-degree error.

Accessing measured data.

Column data may be accessed by name, e.g. odf[["salinity"]], odf[["temperature"]], odf[["pressure"]], etc. It is up to the user to realize what is in the object.

Assigning values. Items stored in the object may be altered with e.g. odf[["salinity"]] <- rep(35,10).

Overview of contents. The show method (e.g. show(odf)) displays information about the object.

See Also

A file containing ODF profile data may be read with read.odf. Statistical summaries are provided by summary.odf, while show displays an overview. ODF objects may be plotted with plot.odf, although it is more common to coerce to another class and plot that.