The R language has indigenous guidance for object-oriented programming. There are two indigenous frameworks, the so-named S3 and S4 methods. The former, staying far more informal, supports single dispatch on the very first argument and objects are assigned to a class by just environment a "class" attribute in each item. https://edwinlxtjt.spintheblog.com/29101130/the-smart-trick-of-r-programming-help-online-that-no-one-is-discussing