Custom S3 Objects
The s3lm
R package provides an example of creating custom S3 objects by showing how linear regression is implemented.
Installation
To install the s3lm
package, use:
if(!requireNamespace("remotes")) install.packages("remotes")
remotes::install_github("coatless-r-n-d/s3-lm")
To access its contents, load it into R with: