What does “S3 methods” mean in R?
问题 Since I am fairly new to R, I do not know what the S3 methods and objects are. I found that there are S3 and S4 object systems, and some recommend to use S3 over S4 if possible (http://google-styleguide.googlecode.com/svn/trunk/google-r-style.html). However, I do not know the exact definition of S3 methods/objects. 回答1: Most of the relevant information can be found by looking at ?S3 or ?UseMethod , but in a nutshell: S3 refers to a scheme of method dispatching. If you've used R for a while,