Displaying 1 result from an estimated 1 matches for "tp25676411p25676411".
2009 Sep 30
5
Condition to factor (easy to remember)
...uot;Pre","Post")
# Typical C-Programmer style
factor(levs[as.integer(data >10)+1], levels=levs)
# Easiest to understand
factor(ifelse(data <=10, levs[1], levs[2]), levels=levs)
--
View this message in context: http://www.nabble.com/Condition-to-factor-%28easy-to-remember%29-tp25676411p25676411.html
Sent from the R help mailing list archive at Nabble.com.