R Incorrect Number Of Subscripts On Matrix