Re: [R] Matching two datasets and updating values

2011-10-04 Thread Petr PIKAL
Hi > > Dear R forum > > I have two datafarmes with category and cat_val forming one dataframe and > cust and cust_category forming another dataframe. > > category = c("C", "D", "B", "A") > cat_val = c(0.10, 0.25, 0.40, 0.54) > cust = c("cust_1", "cust_2", "cust_3", "cust_4", "cust_5", "cust_6"

[R] Matching two datasets and updating values

2011-10-04 Thread Vincy Pyne
Dear R forum I have two datafarmes with category and cat_val forming one dataframe and cust and cust_category forming another dataframe. category = c("C", "D", "B", "A") cat_val = c(0.10, 0.25, 0.40, 0.54) cust = c("cust_1", "cust_2", "cust_3", "cust_4", "cust_5", "cust_6", "cust_7", "cust_8",