powered by
xy2index(data, x, y)
M = matrix(1:20,4,5) xy2index(data=M, x=3, y=2)
Run the code above in your browser using DataLab