Read an oceanographic data file, auto-discovering the file type from the
first line of the file.
This function tries to infer the file type from the first line, using
oceMagic(). If it can be discovered, then an
instrument-specific file reading function is called, with the file
and with any additional arguments being supplied.
Usage
read.oce(file, ...)
Arguments
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.
Value
An '>oce object of that is
specialized to the data type, e.g. '>ctd,
if the data file contains ctd data.
# NOT RUN {library(oce)
x <- read.oce(system.file("extdata", "ctd.cnv", package="oce"))
plot(x) # summary with TS and profilesplotTS(x) # just the TS# }