I am writing a vector to a file in R. However the output comes on 2 lines. I wanted all the values to come on a single line. Can you let me know how to fix this
write(value,file=fileconn,append=TRUE,sep="\t") The o/p comes as follows
1777.167 1825.167 1873.167 1921.167 1969.167
2017.167
Regards Ganesh
dput(value)cat(value, file = "filename")might be better. And then you can usescanto read it back in. I'm also curious to know whatfileconnis. Is that a connection?