search for: gupn

Displaying 2 results from an estimated 2 matches for "gupn".

Did you mean: gup
2008 Feb 14
2
Replacing columns in a data frame using a previous condition
...0 would be 4,4,1,4,0,1,0,3,0,3 and so on. 3. Once replaced the entries, I need to rewrite the columns in GERU. Here is what I've done: > # Function to identify columns with 3 or more categories > tx=function(x) ifelse(dim(table(x))>4,1,0) > # Identifying the columns > M4=apply(GUPN[,-c(1:6)],2,tx) > names(which(MR==1)) # Step 1 [1] "rs335322" "rs335322.1" "rs186750" "rs186750.1" "rs1565901" "rs1565901.1" "rs1565902" [8] "rs1565902.1" "rs11131334"...
2008 Feb 14
0
Replacing columns in a data frame using a previous condition (SOLVED)
...> 3. Once replaced the entries, I need to rewrite the columns in GERU. > > Here is what I've done: > > > # Function to identify columns with 3 or more categories > > tx=function(x) ifelse(dim(table(x))>4,1,0) > > > # Identifying the columns > > M4=apply(GUPN[,-c(1:6)],2,tx) > > names(which(MR==1)) # Step 1 > [1] "rs335322" "rs335322.1" "rs186750" "rs186750.1" > "rs1565901" "rs1565901.1" "rs1565902" > [8] "rs1565902.1" &quot...