predict.tidem {oce}R Documentation

Predict a time series from a tidal model

Description

Predict a time series from a tidal model.

Usage

## S3 method for class 'tidem':
predict(object, ...)

Arguments

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

Details

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

Value

A vector of predictions.

Author(s)

Dan Kelley

See Also

tidem fits a tidal model.

Examples

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")

[Package oce version 0.1-80 Index]