Re: [R] how to aggregate the dataset

2012-12-13 Thread arun
="newPrice") #  product price_band VN #1  11  0-300 40 [34,50] #2  22  0-300 15 [10,30] A.K. - Original Message - From: Tammy Ma To: "r-help@r-project.org" Cc: Sent: Thursday, December 13, 2012 5:42 AM Subject: [R] how to aggregate the data

Re: [R] how to aggregate the dataset

2012-12-13 Thread Rui Barradas
15 0-300 [10,30] How Can I do this in r? Kind regards, Tammy From: metal_lical...@live.com To: metal_lical...@live.com Subject: RE: [R] how to aggregate the dataset Date: Thu, 13 Dec 2012 14:22:54 +0300 HI, I want it l

Re: [R] how to aggregate the dataset

2012-12-13 Thread Tammy Ma
> [10,30] How Can I do this in r? Kind regards, Tammy From: metal_lical...@live.com To: metal_lical...@live.com Subject: RE: [R] how to aggregate the dataset Date: Thu, 13 Dec 2012 14:22:54 +0300 HI, I want it looks like this: > Into: > > pro

[R] how to aggregate the dataset

2012-12-13 Thread Tammy Ma
HI, Sorry for messing up.. I want to transform the following dataset: product min_price max_price mean_price country price_band 11 34 50 40 VN 0-300 22 10 30 15 VN 0-300 Into: pro

[R] How to aggregate the dataset?

2012-12-13 Thread Tammy Ma
HI, I want to transform the following dataset Product Price_LC.1 Price_LC.2 Price_elasticity.1 Price_elasticity.2 Mean_Price Mean_Price_elasticity Trade_Price_Band Country 100 35 52 -4.14 -2.84 47 -3.69