powered by
index2xy(data, index)
M = matrix(1:20,4,5) index2xy(data = M, index = c(3,4))
Run the code above in your browser using DataLab