Displaying 1 result from an estimated 1 matches for "outputmodel".
Did you mean:
output_mode
2010 Aug 12
2
Append to csv without header
...subsequent calls, I want to append the data to the existing
csv file without appending the column names again.
I tried searching in the previous posts, but I am stuck with different
errors.
Here is what I am doing (dataF is a data-frame):-
outputFilePath <- paste(getwd(), "/", "outputModel.csv", sep="");
counter <- 1
for (userid in userids){
dataF <- getUserData(userid)
if(counter == 1){
write.csv(dataF, file = outputFilePath, append=F)
}else{
write.csv(dataF, file = outputFilePath, append=T,col.names=NA)
}
counter <- counter + 1
}
I...