I have a matrix called AS (in R) that collects indices of elements of an array that satisfy a certain condition. This matrix AS, however, is labeled at the top by dim1, dim2, ... which prevent me from using those indexes in typical expressions (cf. picture below). How do I get rid of these dim labels and convert this collection of indices to a regular usable matrix?
Here’s how my dim-labeled matrix looks:
And the error if I try to use the indices contained here normally:
Note: it’s not the dimensions that are incorrect here since RandPoints[1, ...] is supposed to accept 4 arguments for “...” E.g., it runs fine if I type in RandPoints[1,12,1,1,1], but I rather want that [12,1,1,1] to be supplied by calling the first row of AS as attempted in the picture.