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

From: jim holtman <jholtman_at_gmail.com>
Date: Thu, 20 Dec 2007 17:36:25 -0500

> my.obj<-c("a1","a2","a3")
> paste(my.obj, collapse=" ")
[1] "a1 a2 a3"

On Dec 20, 2007 5:15 PM, Milton Cezar Ribeiro <milton_ruser_at_yahoo.com.br> wrote:
> 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.
>

-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?

______________________________________________
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:39:53 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 - 23:30:20 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.