[R] Write to a file

Hongli Li hli at anvilinformatics.com
Thu Apr 12 18:27:56 CEST 2001


Hi,

I am trying to write a vector of list in to a file. I used the following 
       write(result,file="ttest.txt")
I got an error message
       Error in cat(list(...), file, sep, fill, labels, append) : 
                 argument 1 not yet handled by cat

Then I tested the property of my object

> is.vector(result[])
[1] TRUE

> is.list(result[])
[1] TRUE

> is.list(result)
[1] TRUE

> is.vector(result)
[1] TRUE

I don't understand why my list of vector can not be handled by cat.

How to solve it?

Thanks 

Hongli Li

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20010412/f4028dfc/attachment.html


More information about the R-help mailing list