override S3 methods in base R override S3 methods in base R r r

override S3 methods in base R


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.