The function ezANOVA in the ez package calculates an ANOVA. Often I want to look at the means inside of these cells. Normally I just retype the formula and use the summaryBy function. This morning I modified the ezANOVA function so that it included in its resulting object the data required to do a summaryBy command. How can I change the object resulting from ezANOVA to by default hide this extra data when printed?
Share
Your question is a little obscure. If you are returning an object with a class you can modify the print or show method for the corresponding class. You will have to know if you are dealing with an S3 or S4 class. loos at
?methodsof?Methodsfor details. as a quick example if you return an s3 class ‘ezANOVA’ you define a function.Update
In light of your comment, and that you have already modified the exANOVA function. add this to the end of ezANOVA.
then add the
print.ezANOVAfunction and that should handle it.