getAdj_fixedNumber.Rdan efficient function to find the neighborhood based on the matrix of position and a user-specified number of neighbors of each spot.
getAdj_fixedNumber(pos, number=6)A sparse matrix containing the neighbourhood.
getAdj_auto, getAdj.