Learn R Programming

pomp (version 6.3)

lookup: Lookup table

Description

Interpolate values from a lookup table

Usage

lookup(table, t)

Value

A numeric vector or matrix of the interpolated values.

Arguments

table

a ‘covartable’ object created by a call to covariate_table

t

numeric vector; times at which interpolated values of the covariates in table are required.

Extrapolation

If t is outside the range of the lookup table, the values will be extrapolated, and a warning will be issued. The type of extrapolation performed will be constant or linear according to the order flag used when creating the table.

See Also

More on interpolation: bsplines, covariates