Skip to content
Back to formatted view

Raw Message

Message-ID: <971536df0803071318j1a58844dt9269bca03e4caa54@mail.gmail.com>
Date: 2008-03-07T21:18:50Z
From: Gabor Grothendieck
Subject: Combine two columns
In-Reply-To: <20080307150921.BCT82328@expms2.cites.uiuc.edu>

Depending on your purpose you might want to look
at ?interaction or its synonym : (i.e. a colon)

On Fri, Mar 7, 2008 at 4:09 PM,  <amarkey at uiuc.edu> wrote:
> Is there a way to combine two columns within a data frame?
>
> Example data:
>
> id      snp     AL1     AL2
> 1500    30      A       B
> 1510    30      A       A
> 1520    30      A       B
>
> This is what I would like:
>
> indv    snp     AL1AL2
> 1500    30      AB
> 1510    30      AA
> 1520    30      AB
>
> Any help is greatly appreciated.
>
> Alysta
>
> ______________________________________________
> 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.
>