S3 Object & Method
This part presents technical details of these packages intended for readers with advanced expertise in the R programming language, including minor and/or experimental features, to avoid disrupting the focus and flow of the main narrative in this Quarto book. Readers are expected to have a solid understanding of the S3 object-oriented programming system in R and be familiar with the S3 generic functions and methods from
- R version 4.5.2 (2025-10-31) packages
base,graphics,stats,utils, etc. - the
spatstat.*family of packages (Baddeley, Rubak, and Turner 2015; Baddeley and Turner 2005), especiallyspatstat.geom(v3.6.1),spatstat.explore(v3.6.0.1),spatstat.random(v3.4.3). - other
contributed packages, e.g.,mgcv(Wood 2017, v1.9.4),rpart(Therneau and Atkinson 2025, v4.1.24), etc.
This part is organized by the S3 object class, in alphabetical order, then the S3 methods for each class. The names of S3 classes defined in these packages are rendered in italic font, e.g.,
fvlistin 16 fvlist from anylistgroupedHyperframein 19 groupedHyperframehyper_gamin 21 hyper_gam from gamnode1in 24 node1vectorlistin 32 vectorlist from anylist
37 Statistical Topics, on the other hand, organizes the content of this part according to the statistical functionalities, i.e., the S3 generic functions. 37 Statistical Topics is an ideal starting point for readers who are not experts in R.
The R code-chunks in this part are categorized by purpose, including,
- Data, to create and/or inspect R objects for subsequent operations.
- Review, to demonstrate usage of functions from R version 4.5.2 (2025-10-31), or from
contributed packages other than these packages. - Example, to show how to use functions from these packages.
- Exception, to demonstrate the exception-handling mechanisms of functions from these packages.
- Previously, to copy R code from earlier sections for the reader’s convenience.
- Advanced, to discuss advanced topics and experimental features for expert R users.
- Figure, to generate elegant visualizations.
- Workaround, to present alternative solutions to specific problems.
- Table, to create HTML tables using function
knitr::kable()(Xie 2025). - Future, to list upcoming tasks for these packages.
Readers aiming to extend the these packages or integrate them into their own workflows are strongly encouraged to study the Appendix thoroughly.