Abstract
Scripts and user-created functions often make the life of an R user easier. If a repetitive task involves several different lines of code, creating a script or function to do the task saves time. In the S4 object system, methods for generic S4 functions are the functional side of S4 and require special treatment. For Reference Class methods, the methods are regular user-defined functions but are defined within a reference class.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2022 The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature
About this chapter
Cite this chapter
Tollefson, M. (2022). Scripts, User-Created Functions, and S4 and Reference Class Methods. In: R 4 Quick Syntax Reference. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-7924-3_7
Download citation
DOI: https://doi.org/10.1007/978-1-4842-7924-3_7
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-7923-6
Online ISBN: 978-1-4842-7924-3
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)