[R] simple question, i hope

BJ erithid at bellsouth.net
Tue May 17 17:56:10 CEST 2005


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




More information about the R-help mailing list