Re: [R] How does one do simple string concatenation?

From: Henrique Dallazuanna <wwwhsd_at_gmail.com>
Date: Mon, 17 Mar 2008 08:12:49 -0300

Try;

paste(c(c("a","b","c"), "d"), collapse="")

On 17/03/2008, Ajay Shah <ajayshah_at_mayin.org> wrote:
> How does one convert objects c("a","b","c") and "d" into "abcd"?
>
> > paste(c("a","b","c"), "d")
> of course yields
> [1] "a d" "b d" "c d"
>
> --
> Ajay Shah http://www.mayin.org/ajayshah
> ajayshah@mayin.org http://ajayshahblog.blogspot.com
> <*(:-? - wizard who doesn't know the answer.
>
> ______________________________________________
> 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.
>

-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

______________________________________________
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 Mon 17 Mar 2008 - 11:16:50 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 Mon 17 Mar 2008 - 11:30:22 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.

list of date sections of archive