Skip to content
Back to formatted view

Raw Message

Message-ID: <20080307150921.BCT82328@expms2.cites.uiuc.edu>
Date: 2008-03-07T21:09:21Z
From: amarkey at uiuc.edu
Subject: Combine two columns

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