[R] Selecting closest values
pmartinu at broadpark.no
Sun Mar 22 18:48:36 CET 2009
I have a table with ID (1 to 183) and Location (144 to -22).
My problem is that I want to select the 10 ID's that are closest in Location
to ID 1, ID 2 and so on.
Also, some ID have the same Location. Say, if 11 ID's are closest to ID 100
I want to randomly choose one of the ID's to select 10 ID's total.
View this message in context: http://www.nabble.com/Selecting-closest-values-tp22647126p22647126.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help