Builds a shared nearest neighbors matrix and, for each row (observation), returns the indices of the top neighbors with the largest SNN overlap counts
sim_SNN(z_dat, k, tops)A dataframe of top rows with shared nearest neighbors
A dataframe with numeric columns
An integer representing number of nearest neighbors
An integer representing how many of shared nearest neighbors to return