tmatta / lsasim

Simulate large scale assessment data
6 stars 5 forks source link

Integrate anova_table() and summarize_clusters() as a method of generic R funcitons #23

Closed wleoncio closed 3 years ago

wleoncio commented 3 years ago

About anova_table()

anova() is a generic R function with several methods. Currently (lsasim 2.0.2.9004), the anova_table() function is defined independently. It would be great if it were instead implemented as a method of anova() so that one could call the latter instead of the former. The steps to do this are rather straightforward:

About summarize_clusters()

The same thing could be done for summarize_clusters(), which could be a method of summary().

Summary

wleoncio commented 3 years ago

This reference on S3 classes might be useful: http://adv-r.had.co.nz/S3.html