[R] Compare two data sets

2008-03-25 Thread amarkey
I would like to compare two data sets saved as text files (example below) to determine if both sets are identical(or if dat2 is missing information that is included in dat1) and if they are not identical list what information is different between the two sets(ie output "a1", "a3" as the differin

Re: [R] Combine two columns

2008-03-08 Thread amarkey
That worked perfectly. Thank you!!! Original message >Date: Fri, 7 Mar 2008 18:13:24 -0300 >From: "Henrique Dallazuanna" <[EMAIL PROTECTED]> >Subject: Re: [R] Combine two columns >To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> >Cc: r-help@r-project.org > >Try: > >transform(x, AL1Al2 =

[R] Combine two columns

2008-03-07 Thread amarkey
Is there a way to combine two columns within a data frame? Example data: id snp AL1 AL2 150030 A B 151030 A A 152030 A B This is what I would like: indvsnp AL1AL2 150030 AB 151030 AA 152030 AB Any help