Abstract
In R, objects belong to classes as well as modes and types. Classes tell something about how an object is structured. S3 and S4 differ with regard to classes. In S3, there are specific classes into which an R object falls. In S4, the user defines a class for an S4 object. Classes in S3 are called informal classes, whereas classes in S4 are called formal classes. This chapter covers both kinds of classes.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Margot Tollefson
About this chapter
Cite this chapter
Tollefson, M. (2019). Classes of Objects. In: R Quick Syntax Reference. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4405-0_5
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4405-0_5
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4404-3
Online ISBN: 978-1-4842-4405-0
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)