How do I merge two data.frames with overlapping intervals?
Data Frame 1
read.table(textConnection("   from to Lith Form 
1   0   1.2 GRN   BCM
2   1.2 5.0 GDI   BDI
"),header=TRUE)
Data Frame 2
read.table(textConnection("   from to Weath Str
1   0  1.1  HW ES
2   1.1 2.9 SW VS
3   2.9 5.0 HW ST 
"),header=TRUE)
Resulting Data Frame
fromto WeathStrLithForm10.01.1HW ES GRN  BCM 21.11.2SW VS GRN  BCM 31.22.9SW VS 
GDI  BDI 42.95.0HW ST GDI  BDI
        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to