lookup: Lookup table

lookupR Documentation

Lookup table

Description

Interpolate values from a lookup table

Usage

lookup(table, t)

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.

Value

A numeric vector or matrix of the interpolated values.

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


pomp documentation built on Sept. 13, 2024, 1:08 a.m.