Re: [R] Joining variables

From: Guenther, Cameron <Cameron.Guenther_at_myfwc.com>
Date: Thu 25 May 2006 - 04:57:28 EST


Thanks to all who responded.

The paste function is what I was looking for.

Thanks again.

Cameron Guenther, Ph.D.
Associate Research Scientist
FWC/FWRI, Marine Fisheries Research
100 8th Avenue S.E.
St. Petersburg, FL 33701
(727)896-8626 Ext. 4305
cameron.guenther@myfwc.com
-----Original Message-----
From: Berton Gunter [mailto:gunter.berton@gene.com] Sent: Wednesday, May 24, 2006 2:54 PM
To: Guenther, Cameron; r-help@stat.math.ethz.ch Subject: RE: [R] Joining variables

What does "combination of both" mean exactly. I can think of two interpretations that have two different answers. If you give a small example (as the posting guide suggests) it would certainly help me provide an answer.

> -----Original Message-----
> From: r-help-bounces@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Guenther,
> Cameron
> Sent: Wednesday, May 24, 2006 11:46 AM
> To: r-help@stat.math.ethz.ch
> Subject: [R] Joining variables
>
> Hello,
>
> If I have two variables that are factors or characters and I want to
> create a new variable that is the combination of both what function
> can I use to accomplish this?
>
> Ex.
>

> Var1 Var2
> SA100055113 19851113
>
> And I want
>
> NewVar
> SA10005511319851113
>
> Thanks in advance.
>
> Cameron Guenther, Ph.D.
> Associate Research Scientist
> FWC/FWRI, Marine Fisheries Research
> 100 8th Avenue S.E.
> St. Petersburg, FL 33701
> (727)896-8626 Ext. 4305
> cameron.guenther@myfwc.com
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu May 25 05:23:13 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 25 May 2006 - 06:10:26 EST.

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