Learn R Programming

crunch (version 1.12.2)

addSubvariable: Add subvariable to an array

Description

This function conceals the dirty work in making this happen. The array gets unbound and rebound into a new array with the new variable added.

Usage

addSubvariable(variable, subvariable)

Arguments

variable
the array variable to modify
subvariable
the subvariable to add

Value

a new version of variable with the indicated subvariables