get_pred_from_table: Get a predictor from input data
Description
Get a predictor from input data
Usage
get_pred_from_table(time, pred, table)
Value
a numeric vector of predictor values
Arguments
- time
Numeric vector of days to get data. Ignored if input is constant
over time (as indicated by NA value in 'j_day' column)
- pred
string specifying the name of the predictor, e.g. "host_den"
- table
input predictors table