Get coordinates adjacent to a point
Arguments
- yy
The target y coordinate
- xx
The target x coordinate
- nrow
The maximum row value. Not needed if
datais provided.- ncol
The maximum column value. Not needed if
datais provided.- data
A matrix used to determine
nrowandncolif provided.- yCount
The number of rows to include on either side of the target
- xCount
The number of columns to include on either side of the target