| read.oce {oce} | R Documentation |
Read an oceanographic data file, auto-discovering the file type from the first line of the file.
read.oce(file, ...)
file |
a connection or a character string giving the name of the file to load. |
... |
arguments to be handed to whichever instrument-specific reading function is selected, based on the header. |
This function tries to infer the file type from the first line, using
magic. If it can be discovered, then an instrument-specific
file reading function is called, with the file and with any additional
arguments being supplied.
On success, an oce object of type ctd, sealevel,
coastline, or lobo. On failure, an error occurs.
Dan Kelley Dan.Kelley@Dal.Ca
The file type is determined by
magic. If the file type can be determined, then one
of the following is called:
read.ctd,
read.coastline
read.lobo,
or
read.sealevel.
## Not run:
library(oce)
x <- read.oce("/usr/local/lib/R/library/oce/demo/ctdprofile.cnv")
plot(x) # summary with TS and profiles
plot.TS(x) # just the TS
## End(Not run)