Bug: derive_vars_period()
errors unexpectedly when dataset_ref
has unused variables
#2231
Labels
derive_vars_period()
errors unexpectedly when dataset_ref
has unused variables
#2231
What happened?
When
dataset_ref
contains variables that are then not mentioned within thenew_vars
call,derive_vars_period()
errors with the unhelpful error message:when really one would at least expect the error message to flag that this is occurring because every variable in
dataset_ref
must either be a key variable or be mentioned innew_vars
. Alternatively the function should just ignore unused variables. See reproducible example for details.Session Information
Not relevant
Reproducible Example
The text was updated successfully, but these errors were encountered: