Find integers within some radius of the given ones.
Usage
neighbours(k, x = 1:max(k), r = 0)
Value
Returns those integers in x which are at most r from some integer in k, i.e. the intersection of x with the union of the balls of radius r centred at the values of k. The return values are unique and sorted.