[R] Selecting closest values
jholtman at gmail.com
Sun Mar 22 18:54:18 CET 2009
It would be helpful is you supplied a subset of the data so that we
could see what you expect. The 'outer'
On Sun, Mar 22, 2009 at 1:48 PM, P_M <pmartinu at broadpark.no> wrote:
> 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.
> Thank you
> 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.
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
+1 513 646 9390
What is the problem that you are trying to solve?
More information about the R-help