© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
M. TollefsonR 4 Quick Syntax Referencehttps://doi.org/10.1007/978-1-4842-7924-3_7

7. Scripts, User-Created Functions, and S4 and Reference Class Methods

Margot Tollefson1  
(1)
Vanward Statistics, PO Box 286, 612 Teneyck Avenue, Stratford, IA, 50249-0286, USA
 

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 ...

Get R 4 Quick Syntax Reference: A Pocket Guide to the Language, API's and Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.