powered by
coor Transforms a x,y position in a cartesian plane into a position in a 1D array.
coor
coor(i, j, size)
the value of the row.
the value of the column.
the maximum between row and columns of the matrix.
an integer value that represents the position in the array.
# NOT RUN { pos<-coor(1,1,10) # }
Run the code above in your browser using DataLab