I have two csv files. File one (consumption.scv) has the household identifier number in the header and hourly consumption values in each row. Each column represents another hosuehold. File two is one column with only household numbers which I would like to include.
I would like to produce a file which only includes the consumption time series of households which are included in file b.
consumption<-read.csv householdno<-read.csv
I am stuck with the following: consumption_new<-consumption[,c(xxxxxx)]
Thanks a lot for your help!