[R] Format table help

cameron raymond.fu at invesco.com
Wed Nov 10 22:44:49 CET 2010


i have table Mthticker 

> MthTicker[[i]]
01/02/04 02/02/04 03/01/04 04/01/04 05/03/04 06/01/04 07/01/04 08/02/04 
LHN04    LHQ04    LHQ04    LHV04    LHZ04    LHG05    LHJ05    LHK05    
09/01/04 10/01/04 11/01/04 12/01/04 01/03/05 02/01/05 03/01/05 04/01/05 
LHK05    LHM05    LHM05    LHN05    LHN05    LHQ05    LHQ05    LHV05    
05/02/05 06/01/05 07/01/05 08/01/05 09/01/05 10/03/05 11/01/05 12/01/05 
LHZ05    LHG06    LHJ06    LHK06    LHK06    LHM06    LHM06    LHN06    
01/03/06 02/01/06 03/01/06 04/03/06 05/01/06 06/01/06 07/03/06 08/01/06 
LHN06    LHQ06    LHQ06    LHV06    LHZ06    LHG07    LHJ07    LHK07    
09/01/06 10/02/06 11/01/06 12/01/06 01/02/07 02/01/07 03/01/07 04/02/07 
LHK07    LHM07    LHM07    LHN07    LHN07    LHQ07    LHQ07    LHV07    
05/01/07 06/01/07 07/02/07 08/01/07 09/04/07 10/01/07 11/01/07 12/03/07 
LHZ07    LHG08    LHJ08    LHK8 08  LHK8 08  LHM8 08  LHM8 08  LHN8 08  
01/02/08 02/01/08 03/03/08 04/01/08 05/01/08 06/02/08 07/01/08 08/01/08 
LHN8 08  LHQ8 08  LHQ8 08  LHV08    LHZ08    LHG09    LHJ09    LHK09    
09/02/08 10/01/08 11/03/08 12/01/08 01/02/09 02/02/09 03/02/09 04/01/09 
LHK09    LHM09    LHM09    LHN09    LHN09    LHQ09    LHQ09    LHV09    
05/01/09 06/01/09 07/01/09 08/03/09 09/01/09 10/01/09 11/02/09 12/01/09 
LHZ9     LHG0     LHJ0     LHK0     LHK0     LHM0     LHM0     LHN0     
01/04/10 02/01/10 03/01/10 04/01/10 05/03/10 06/01/10 07/01/10 08/02/10 
LHN0     LHQ0     LHQ0     LHV0     LHZ0     LHG1     LHJ1     LHK1     
09/01/10 10/01/10 11/01/10 
LHK1     LHM1     LHM1


I want to  change  Mthticker into 


       2004       2005   2006   2007 ...
Jan   LHN04    LHN04     .       . 
Feb   LHQ04   LHQ04     .       .
Mar  LHQ04    LHQ04     .       .
Apr   LHV04    LHV04     .       .
.
.
.


Thanks in advance
-- 
View this message in context: http://r.789695.n4.nabble.com/Format-table-help-tp3036945p3036945.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list