Displaying 1 result from an estimated 1 matches for "cleanup_data".
2007 Aug 29
1
combining datasets by row
...o append multiple .csv files of different dimensions (but
# of columns are the same for all .csv files). I do have .csv files
whose 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:...