Generates indices corresponding to subarrays.
either a vector of the dimensions of a potential array, or a list of the indices in the subarray.
This function generates a matrix corresponding to all combinations of a list of indices, to be used in subsetting arrays.
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.