Learn R Programming

oce (version 0.1-76)

predict.tide: Predict a time series from a tidal model

Description

Predict a time series from a tidal model.

Usage

predict.tide(object, ...)

Arguments

object
a tide object.
...
optional arguments passed on to children.

Value

  • A vector of predictions.

Details

This is a wrapper around the predict method for object$model.

See Also

tidem fits a tidal model.

Examples

Run this code
library(oce)
data(sealevel.tuk)
tide <- tidem(sealevel.tuk)
plot(sealevel.tuk$data$t, sealevel.tuk$data$eta, type='l', ylim=c(-2,5))
lines(sealevel.tuk$data$t, sealevel.tuk$data$eta - predict(tide), col="red")

Run the code above in your browser using DataLab