[R] range and intersection

Adrian Johnson oriolebaltimore at gmail.com
Sun Mar 14 04:14:32 CET 2010


Hi:

I have a two large files (over 300K lines).

file 1:

Name    X
UK       199
UK       230
UK       139
......
UAE    194
UAE     94




File 2:

Name   X    Y
UK    140   180
UK    195    240
UK    304    340
....


I want to select X of File 1 and search if it falls in range of X and
Y of File 2 and Print only those lines of File 1 that are in range of
File 2 X and Y


How can it be done it in R.

thanks
Adrian



More information about the R-help mailing list