search for: ctrl_noc

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

Did you mean: ctrl_lock
2011 Dec 20
5
Help with code
...if (substr(data$t1d_ptype[i],1,4) == "Ctrl" && c1[i,j] == 1) c2[i,j]<-"Ctrl_oc" } else { if(data$t1d_ptype[i] == "T1D") c2[i,j]<-"T1D_noc" if(substr(data$t1d_ptype[i],1,4) == "Ctrl") c2[i,j]<-"Ctrl_noc" } } it is giving me error In `[<-.factor`(`*tmp*`, iseq, value = structure(c(NA, ... : invalid factor level, NAs generated Also it there a simple way to do this. Thanks Sharad -- View this message in context: http://r.789695.n4.nabble.com/Help-with-code-tp4218989p4218989.html...