read.sealevel(file, debug=FALSE, log.action)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.)
library(oce)
# San Francisco data
# ftp://ilikai.soest.hawaii.edu/rqds/pacific/hourly/h551a.zip
h <- read.sealevel("h551a/h551a01.dat")
summary(h)
plot(h)Run the code above in your browser using DataLab