fun(object, ...)This method will result in an error since all the Math Group functions require a numerical object as an argument. Indeed, the method exists becauseit is necessary to prevent interpretation of factors or ordered factors as numeric objects. Use
codes()
if you want a numeric representation of the equivalence
relation defined by the factor.