Getting column name which holds a max value within a row of a matrix holding a separate max value within an array
问题 For instance given: dim1 <- c("P","PO","C","T") dim2 <- c("LL","RR","R","Y") dim3 <- c("Jerry1", "Jerry2", "Jerry3") Q <- array(1:48, c(4, 4, 3), dimnames = list(dim1, dim2, dim3)) I want to reference within this array, the matrix that has the max dim3 value at the (3rd row, 4th column) location. Upon identifying that matrix, I want to return the column name which has the maximum value within the matrix's (3rd Row, 1st Column) to (3rd Row, 3rd Column) range. So what I'd hope to happen is that