Message-ID: <BANLkTi=+R0sRiKhqnHHJTTawDTnMzH5HwA@mail.gmail.com>
Date: 2011-04-08T10:50:26Z
From: Alfredo Alessandrini
Subject: Very simple question
In-Reply-To: <4D9EE6F0.207@gmail.com>
> Exist any function to associated with paste make this result more automatically.
you can try with gsub.
Alfredo
2011/4/8 Ronaldo Reis Junior <chrysopa at gmail.com>:
> Hi,
>
> I have a very simple doubt.
>
> Look:
>
>> teste <- c("A","B","C")
>
>> teste2 <- paste(teste[1],teste[2],teste[3],sep="+")
>> teste2
> [1] "A+B+C"
>>
>
> How to make it automatic, like I try to use paste(teste,sep="+") but the
> paste dont get the teste elements separately to join again in a unique
> element.
>
> Exist any function to associated with paste make this result more
> automatically.
>
> Thanks
> Ronaldo
>
> --
> 17? lei - Seu orientador quer que voc? se torne famoso,
> ? ? ? ? ?de modo que ele possa, finalmente, se tornar famoso.
>
> ? ? ?--Herman, I. P. 2007. Following the law. NATURE, Vol 445, p. 228.
>
>> ?Prof. Ronaldo Reis J?nior
>
> | ?.''`. UNIMONTES/DBG/Lab. Ecologia Comportamental e Computacional
> | : :' ?: Campus Universit?rio Prof. Darcy Ribeiro, Vila Mauric?ia
> | `. `'` CP: 126, CEP: 39401-089, Montes Claros - MG - Brasil
> | ? `- Fone: (38) 3229-8192 | ronaldo.reis at unimontes.br
> | http://www.ppgcb.unimontes.br/lecc | LinuxUser#: 205366
>
> ______________________________________________
> 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.
>