Skip to content
Prev 315964 / 398502 Next

problems with coercing a factor to be numeric

On Jan 23, 2013, at 1:58 AM, Francesco Sarracino wrote:

            
I think it is rather strange that you are criticising R because the  
mean or sum functions won't coerce factors to numeric class. R is  
already very loosely typed. It has a fairly limited number of object  
classes and there is widespread class coercion when it is appropriate.  
Can you explain why you believed factors or by logical extension  
character classed variables should get implicitly coerced by all  
mathematical functions?