Skip to content
Prev 341874 / 398498 Next

Best practice: to factor or not to factor for float variables

Keep as numeric and group with cut(), Hmisc::cut2, or findInterval. The beauty of the functional language design is that you do not need to create a new factor variable.