Re: [R] collapsing a list in a var.

From: Peter Alspach <PAlspach_at_hortresearch.co.nz>
Date: Fri, 21 Dec 2007 11:23:38 +1300

?sep

paste(my.obj, collapse=" ")

HTH ...... Peter Alspach

> -----Original Message-----
> From: r-help-bounces_at_r-project.org
> [mailto:r-help-bounces_at_r-project.org] On Behalf Of Milton
> Cezar Ribeiro
> Sent: Friday, 21 December 2007 11:15 a.m.
> To: R-help
> Subject: [R] collapsing a list in a var.
>
> Dear all,
>
> I have a object like my.obj<-c("a1","a2","a3") and I would
> like my.new.obj="a1 a2 a3".
> I tryed to do my.new.obj<-paste(my.obj,sep=" ") but it return
> three entries and I need only one entry as result.
>
> Any idea?
>
> Miltinho
> Brazil.
>
>
>
> para armazenamento!
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

The contents of this e-mail are privileged and/or confidential to the named  recipient and are not to be used by any other person and/or organisation.  If you have received this e-mail in error, please notify the sender and delete  all material pertaining to this e-mail.



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 20 Dec 2007 - 22:27:43 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 20 Dec 2007 - 22:30:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.