Re: [R] combining unequal dataframes based on a common grouping factor

2014-12-03 Thread Chel Hee Lee
> frame1 ID GROUP PROP_AREA 1 1 A 0.33 2 2 A 0.33 3 3 A 0.33 4 4 B 0.50 5 5 B 0.50 6 6 C 1.00 7 7 D 1.00 > frame2 GROUP VALUE1 VALUE2 1 A 10 5 2 B 20 10 3 C 30 15 4 D 40 20 >

Re: [R] combining unequal dataframes based on a common grouping factor

2014-12-03 Thread Jeff Newmiller
Posting in HTML format doesn't work nearly as well as you think it does... Your email is pretty mixed up. Please use plain text format and use dput to make your data usable in R. I expect the best answer to your problem is going to be to use the merge function instead of your for loops.. but th