read.sealevel(file, tz=getOption("oceTz"),
history, debug=getOption("oceDebug"))oceTz, is set to UTC
at setup. (If a time zone is present in the file header, this will
supercede the value given here.)TRUE to get debugging information during processing.class "sealevel", which
is a list containingdata.frame containing
[object Object],[object Object]oce format.Station_Name on the first line
of the file, indicating type 2.) If the file is in neither of these
formats, the user might wish to scan it directly, and then to use
as.sealevel to create a sealevel object.read.oce provides an
alternative to this. A sealevel object may be summarized with
summary.sealevel. Use plot.sealevel to
produce a summary plot, and use tidem to fit a tidal
model to the data. A "sealevel" object can also be constructed with
as.sealevel (and, in fact, read.sealevel uses
this routine to actually create the "sealevel" object.)
Tidal models may be fitted to "sealevel" objects with
tidem.
library(oce)
# sealevelHalifax
sl <- read.oce("h275a96.dat")
summary(sl)
plot(sl)
m <- tidem(sl)
plot(m)Run the code above in your browser using DataLab