Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    can you please provide dput(value) Commented Jan 15, 2015 at 5:07
  • 1
    That's what I was going to suggest too cat(value, file = "filename") might be better. And then you can use scan to read it back in. I'm also curious to know what fileconn is. Is that a connection? Commented Jan 15, 2015 at 5:25
  • @Mr.Flick Thanks. I did not realize that write had a ncolumns parameter. I did check on other vectors and I did notice that it defaulted to 5 columns. I added ncolumns and it is fine write(value,file=fileconn,append=TRUE,sep="\t",ncolumns=7) Commented Jan 15, 2015 at 6:10
  • @Richard the file columns is a connection fileconn <-file(filename) Commented Jan 15, 2015 at 6:13