Hi, I'm running R 2.11 Does anyone know if it possible to transform one character vector to one character string ? Many thanks Benoit -- Benoit Wastine Laboratoire des Sciences du Climat et de l?Environnement (LSCE/IPSL) CEA-CNRS-UVSQ CE Saclay Orme des merisiers B?t 703 - Pte 13A 91191 Gif sur Yvette Cedex France Tel : 33 (0)1 69 08 21 97 Fax : 33 (0)1 69 08 77 16
?paste
collapse = T may be necessary.
--------------------------------------
Jonathan P. Daily
Technician - USGS Leetown Science Center
11649 Leetown Road
Kearneysville WV, 25430
(304) 724-4480
"Is the room still a room when its empty? Does the room,
the thing itself have purpose? Or do we, what's the word... imbue it."
- Jubal Early, Firefly
r-help-bounces at r-project.org wrote on 12/07/2010 10:11:41 AM:
> [image removed]
>
> [R] string
>
> Benoit Wastine
>
> to:
>
> r-help
>
> 12/07/2010 10:14 AM
>
> Sent by:
>
> r-help-bounces at r-project.org
>
> Hi,
>
> I'm running R 2.11
> Does anyone know if it possible to transform one character vector to one
> character string ?
>
> Many thanks
> Benoit
>
> --
> Benoit Wastine
> Laboratoire des Sciences du Climat et de l?Environnement (LSCE/IPSL)
> CEA-CNRS-UVSQ
> CE Saclay
> Orme des merisiers
> B?t 703 - Pte 13A
> 91191 Gif sur Yvette Cedex
> France
>
> Tel : 33 (0)1 69 08 21 97
> Fax : 33 (0)1 69 08 77 16
>
> ______________________________________________
> 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.
Hi, If I understand what you mean (no example...), see ?paste and the collpase argument Ivan Le 12/7/2010 16:11, Benoit Wastine a ?crit :> Hi, > > I'm running R 2.11 > Does anyone know if it possible to transform one character vector to > one character string ? > > Many thanks > Benoit >-- Ivan CALANDRA PhD Student University of Hamburg Biozentrum Grindel und Zoologisches Museum Abt. S?ugetiere Martin-Luther-King-Platz 3 D-20146 Hamburg, GERMANY +49(0)40 42838 6231 ivan.calandra at uni-hamburg.de ********** http://www.for771.uni-bonn.de http://webapp5.rrz.uni-hamburg.de/mammals/eng/1525_8_1.php
On Dec 7, 2010, at 10:11 AM, Benoit Wastine wrote:> Hi, > > I'm running R 2.11 > Does anyone know if it possible to transform one character vector to > one character string ??gsub Also look at the even more powerful gsubfn package. There is also the stringr package. -- David Winsemius, MD West Hartford, CT