search for: 28easy

Displaying 1 result from an estimated 1 matches for "28easy".

Did you mean: 28days
2009 Sep 30
5
Condition to factor (easy to remember)
...,10,50,70) levs = c("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.