[R] simple question, i hope

Wuming Gong wuming.gong at gmail.com
Tue May 17 18:16:33 CEST 2005


See ?write.table

Wuming

On 5/17/05, BJ <erithid at bellsouth.net> wrote:
> 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 at 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
>




More information about the R-help mailing list