search for: rs132

Displaying 1 result from an estimated 1 matches for "rs132".

Did you mean: s132
2010 Feb 28
1
Combining 2 columns into 1 column many times in a very large dataset
...ficient. Here is a toy example of the data structure: pop = data.frame(status = rbinom(n, 1, .42), sex = rbinom(n, 1, .5), age = round(rnorm(n, mean=40, 10)), disType = rbinom(n, 1, .2), rs123=c(1,3,1,3,3,1,1,1,3,1), rs123.1=rep(1, n), rs157=c(2,4,2,2,2,4,4,4,2,2), rs157.1=c(4,4,4,2,4,4,4,4,2,2), rs132=c(4,4,4,4,4,4,4,4,2,2), rs132.1=c(4,4,4,4,4,4,4,4,4,4)) Thus, there are a few columns of basic demographic info and then the rest of the columns are biallelic SNP info. Ex: rs123 is allele 1 of rs123 and rs123.1 is the second allele of rs123. 1) I need to merge all the biallelic SNP data that is...