predict.tidem {oce} | R Documentation |
Predict a time series from a tidal model.
## S3 method for class 'tidem': predict(object, ...)
object |
a tidem object. |
... |
optional arguments passed on to children. |
This is a wrapper around the predict method for
object$model
.
A vector of predictions.
Dan Kelley
tidem
fits a tidal model.
library(oce) data(sealevel.tuk) tide <- tidem(sealevel.tuk) plot(sealevel.tuk$data$time, sealevel.tuk$data$elevation, type='l', ylim=c(-2,5)) lines(sealevel.tuk$data$time, sealevel.tuk$data$elevation - predict(tide), col="red") abline(h=0, col="red")