Fixed radius Nearest neighbors from a vector of distances

nn_r(vec, index, r)

Arguments

vec

Vector of distances

index

dummy to facilitate dapply

r

Radius for nearest neighbors