Skip to content
Prev 69870 / 398506 Next

simple question, i hope

BJ
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