Helper function that ensures all trials are present in networks and events df
Usage
check_trials(event_data, networks, ILV_tv = NULL, t_weights = NULL)
Arguments
- event_data
dataframe with columns id, trial, time, t_end
- networks
networks dataframe with columns trial, focal, other, and one or more columns of edge weights named descriptively.
- ILV_tv
dataframe of time-varying ILVs
- t_weights
dataframe of transmission weights, can be timevarying
Value
error message if trials are missing from dataframes