This function conceals the dirty work in making this happen. The array gets unbound, the subvariables deleted, and then the remaining subvariable are rebound into a new array.
deleteSubvariables(variable, to.delete)deleteSubvariable(variable, to.delete)
the array variable
aliases (following crunch.namekey.dataset
) or indices
of variables to delete.
a new version of variable without the indicated subvariables
Deleting requires confirmation. In an interactive session, you will be asked
to confirm. To avoid that prompt, or to delete subvariables from a
non-interactive session, wrap the call in with_consent
to give
your permission to delete.