search for: distype

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

Did you mean: mistype
2010 Feb 28
1
Combining 2 columns into 1 column many times in a very large dataset
...le workable solutions for 2) and 3) but not my question 1). However, I include 2) and 3) in case anyone has recommendations that would be efficient. 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 S...