Interpolate values from a lookup table
lookup(table, t)
A numeric vector or matrix of the interpolated values.
a ‘covartable’ object created by a call to covariate_table
numeric vector; times at which interpolated values of the covariates in table
are required.
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.
More on interpolation:
bsplines
,
covariates