[R] Reading data with two rows of variable names using read.zoo

SW Kim skim3 at naver.com
Wed Jul 29 08:57:48 CEST 2015


Thanks, Dan.

Your codes work fine. But I have tens of countries UK, JP, BR, US...,
each of which has ten columns a1, a2, ..., a10 of data. So a little more
automation is needed.

I have been trying to make a list of each country's data and use sapply
thing
to get 
               UK   JP
2009 Q2     6    5 
2009 Q3     7    5 
2009 Q4     8    7 
2010 Q1     6    7 
2010 Q2     6    3 

But for me, it was not easy as it looks... 
Thank you in advance!



--
View this message in context: http://r.789695.n4.nabble.com/Reading-data-with-two-rows-of-variable-names-using-read-zoo-tp4710496p4710510.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list