Finds neighbors between two sets of intervals (and does not return conflicting column names)

gintervals.neighbors1(intervals1 = NULL, intervals2 = NULL,
  maxneighbors = 1, mindist = -1e+09, maxdist = 1e+09,
  na.if.notfound = TRUE)

See also

gintrevals.neighbours