Displaying 1 result from an estimated 1 matches for "getuserdata".
2010 Aug 12
2
Append to csv without header
...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 tried setting col.names = F (In append=T), but no good.
Can anyone throw light on the correct usage....