Instead of trying to override the print.anova
function you could create your own class which is essentially identical to the anova class. Create an as.myanova
function which will turn an anova
object into an object of mynanova
then write your print.myanova
function.