[R] creating Pivot

namit saileshchowdary at gmail.com
Wed Jul 25 06:41:19 CEST 2012


Hi Friends, 
  

I'm new to R.I  have a data frame : 

xxx  having  columns      color    name  values 
                                                  R          XXX     10 
                                                  G          YYY      4 
                                                  Y           ZZZ      5 
                                                  G          XXX     2         
                                                    Y         XXX     3 
                                                   R          YYY      2 
                                                   Y          YYY       1 
                                                   R         ZZZ       2 
                                                   G         ZZZ       3 


Now i want to have the data  in this format               R    G    Y 

                                                                                  
XX X       10   2     3 
                                                                                    
YYY         2    4     1 
                                                                                   
ZZZ          2   3      5 

Can you please help me on this. 


Thanks, 
Namit 





--
View this message in context: http://r.789695.n4.nabble.com/creating-Pivot-tp4637711.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list