deleteSubvariables: Delete subvariables from an array
Description
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.
Usage
deleteSubvariables(variable, to.delete)
deleteSubvariable(variable, to.delete)
Arguments
variable
the array variable
to.delete
character alias(es) or name(s), depending on the value of
getOption("crunch.namekey.array"), of the subvariables to delete.
Value
a new version of variable without the indicated subvariables