Hi
Your HTML formated message was scrammbled so it is impossible to say what result
you expected.
Regards
Petr
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Julius Tesoro
> Sent: Tuesday, October 22, 2013 9:35 AM
> To: r-help at r-project.org
> Subject: [R] Merging data.frames with overlapping intervals
>
> 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 at 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.