Displaying 1 result from an estimated 1 matches for "ctpp3".
Did you mean:
ctp3
2007 Aug 29
1
combining datasets by row
...se names are CA1.csv ~ CA100.csv. CA means california and 1 means
the first file. So what I have been doing (after googling how to append
by row multiple files) was:
cleanup_data<-function(state,count)
{
out<-matrix()
for (i in 1: count)
{
tmp<-read.csv(paste("CTPP3/",state,i,".csv",sep=""),header=F)
out<-rbind(out,tmp)
}
write.csv(file.out,file='file_output.csv')
}
I got an error message:
cleanup_data('CA',7)
Error in match.names(clabs, names(xi)) : names do not match previous names
Which name is thi...