HI, 


now I have dataset:

                          Product Price_LC.1 Price_LC.2 Price_elasticity.1 
Price_elasticity.2 Mean_Price Mean_Price_elasticity Trade_Price_Band Country
1                             100   357580.1   527483.6         -4.1498383      
   -2.8459564   473934.0            -3.6935476         0-542811          VN
5                            1208   436931.9   536143.9         -3.9432305      
   -3.4570170   469330.2            -3.6595372         0-542811         VN
6                            1280   419666.6   520936.3         -1.7357983      
   -0.7689443   461367.0            -1.2848528         0-542811          VN
2                             101   629371.0   735167.2         -5.2289933      
   -3.0364372   676059.9            -3.8059064    542812-904779      VN
7                            1616   576816.1   663369.6         -4.5528840      
   -3.9523261   614864.5            -4.3181914    542812-904779      VN
8                            1661   583587.9   689853.0         -5.0948101      
   -4.3427497   650680.0            -4.8109781    542812-904779      VN


I want to get the following dataset:


Product       VN                                 Price_band
100          -3.6935476                        0-542811
               [357580.1, 527483.6 ]  
               [-2.8459564, 473934.0]    

1208        -3.6595372                       0-542811 
               [436931.9, 536143.9]
               [-3.9432305, -3.4570170]


....




how do I get this in r?? Thanks.


Kind regards,
Lingyi

                                          
        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to