The srts_from_df method crashes if model_srts is defined but the models are not in the dataframe. The issues is that the aggregate method ends up with functions for columns that don't exist.
This should be fixed by adding the model_srts values only if the model--output pair exists in the data frame.
The
srts_from_df
method crashes ifmodel_srts
is defined but the models are not in the dataframe. The issues is that theaggregate
method ends up with functions for columns that don't exist.This should be fixed by adding the
model_srts
values only if the model--output pair exists in the data frame.