[R] simple question, i hope

From: BJ <erithid_at_bellsouth.net>
Date: Wed 18 May 2005 - 01:56:10 EST


How do you output a list to a text file without the extra line numbers and stuff?

I have a list b, and tried

 zz<-textConnection("captest.txt","w")
sink(zz)
b
sink()
close(zz)

but that isnt what i want, because i get [[1]]

                                                        [1] a

etc. Is there a simple way to do the R equivalent of this perl code?

open(OUT,">out.txt");
print OUT @b;
close OUT

Thank you for your help. I tried pouring over teh documentation for this, but couldnt find what I was lookign for. ~Erithid



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed May 18 02:13:54 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:48 EST