S3 Objects & Methods
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 method dispatches from
- R version 4.5.1 (2025-06-13) packages
base
,graphics
,stats
,utils
, etc. - the
spatstat.*
family of packages (Baddeley, Rubak, and Turner 2015; Baddeley and Turner 2005), especiallyspatstat.geom
(v3.6.0.3),spatstat.explore
(v3.5.3.3),spatstat.random
(v3.4.2.3). - other
contrib
uted packages, e.g.,mgcv
(Wood 2017, v1.9.3),rpart
(Therneau and Atkinson 2025, v4.1.24), etc.
This part is organized by the S3
object class
, in alphabetical order, then the S3
method dispatches for each class. The names of S3
classes defined in these packages are rendered in italic font
, e.g.,
fvlist
in 14 fvlist from anylistgroupedHyperframe
in 16 groupedHyperframehyper_gam
in 18 hyper_gam from gamnode1
in 21 node1vectorlist
in 27 vectorlist from anylist
32 Statistical Topics, on the other hand, organizes the content of this part according to the statistical functionalities, i.e., the S3
generic functions. 32 Statistical Topics is an ideal starting point for readers who are not experts in R.
To enhance readability and navigation, most R code-chunks in this part are folded by default. The R code-chunks 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.1 (2025-06-13), or from
contrib
uted 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.