[R] Write to a file

Hongli Li
Thu, 12 Apr 2001 16:27:56 -0000

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...