Re: [R] simple question, i hope

From: Wuming Gong <wuming.gong_at_gmail.com>
Date: Wed 18 May 2005 - 02:16:33 EST

See ?write.table

Wuming

On 5/17/05, BJ <erithid@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@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
>



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:28:18 2005

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