Re: [R] insert values based on common ID

2010-05-14 Thread Erik Iverson
Hello, Good reproducible example. Is > merge(a[names(a) != "weekAvg"], b) what you want? emorway wrote: Forum, with the datasets a and b below, I'm trying to establish a relationship based on the common column "week" and insert the value from the column weekAvg in b to the column weekAvg in

Re: [R] insert values based on common ID

2010-05-14 Thread Marc Schwartz
On May 14, 2010, at 10:15 AM, emorway wrote: > > Forum, > > with the datasets a and b below, I'm trying to establish a relationship > based on the common column "week" and insert the value from the column > weekAvg in b to the column weekAvg in a. The dataset a is several thousand > lines long.