Posts Tagged ‘ duplicated data ’

Example 7.19: find the closest pair of observations

December 28, 2009
By
Example 7.19: find the closest pair of observations

Suppose we need to find the closest pair of observations on some variable x. For example, we might be concerned that some data had been accidentally duplicated. We return the ID's of the two closest observations, and their distance from each other. In both languages, we'll first create the data, then sort it, recognizing that the...

Read more »