predictors {IxPopDyMod}R Documentation

Create a table of predictors

Description

A data frame of input data to be used in as predictor values in transition functions.

Usage

predictors(df, verbose = FALSE)

Arguments

df

input data frame, with columns:

pred

String specifying the name of the predictor, e.g. "temp" or "host_den"

pred_subcategory

This column allows specifying predictors for which there are multiple values for a given j_day. Predictor values are sorted by this column in the config set up. This ensures that when accessing a predictor with multiple values for the same j_day, we get a vector of predictor values ordered by this column. A typical use for this column is to specify the host density of each host species.

j_day

Integer specifying the Julian day, or NA for predictors with constant value over time

value

Numeric value of predictor

verbose

Boolean; whether to warn about reordering the df

Value

a predictors object


[Package IxPopDyMod version 0.3.0 Index]