search for: tp3631318p3631318

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

2011 Jun 28
1
create a factor variable from two numeric variables when order is irrelevant
...ard, more direct way to do this. i<-apply(t(apply(d,1,function(x) sort(x))),1,function(y) 10*y[1]+y[2]) i<-factor(i) i Thanks for your help, Daniel -- View this message in context: http://r.789695.n4.nabble.com/create-a-factor-variable-from-two-numeric-variables-when-order-is-irrelevant-tp3631318p3631318.html Sent from the R help mailing list archive at Nabble.com.