indexing: Internal function to convert (row,col) to vector index
Description
Internal function to convert (row,col) to vector index
Usage
indexing(row, col, nrows)
Value
an index vector for the cells
Arguments
- row
integer vector the rows
- col
integer vector for the columns
- nrows
integer for the number of rows