Rangejoin Stata. The data step hash object i often have to merge a small dataset into a much larger dataset. For those who are interested exactly the same results can be achieved in stata using rangejoin command.
If filename is specified without an extension dta is assumed.
Rangejoin forms pairwise combinations between observations in memory and observations in a using dataset when the value of a key variable in the using dataset is within the range specified by observations in the data in memory. Joinby joins within groups formed by varlist observations of the dataset in memory with filename a stata format dataset. The data step hash object i often have to merge a small dataset into a much larger dataset.