A Simple Guide to S3 Methods
Programming Languages
2016-08-26 v1
Abstract
Writing functions in R is an important skill for anyone using R. S3 methods allow for functions to be generalised across different classes and are easy to implement. Whilst many R users are be adept at creating their own functions, it seems that there is room for many more to take advantage of R's S3 methods. This paper provides a simple and targeted guide to explain what S3 methods are, why people should them, and how they can do it.
Cite
@article{arxiv.1608.07161,
title = {A Simple Guide to S3 Methods},
author = {Nicholas Tierney},
journal= {arXiv preprint arXiv:1608.07161},
year = {2016}
}
Comments
7 pages