Function spatstat.geom::anylist() (v3.7.0.6) creates a list of objects of any type, i.e., an R object of S3 class 'anylist', which inherits from the class 'listof' defined in package stats and the class 'list' defined in package base, both shipped with R version 4.5.2 (2025-10-31). Listing 14.1 summarizes the S3 methods for the class 'anylist' in the spatstat.* family of packages,
The S3 generic function attr_() extracts specified attribute per element. Package groupedHyperframe (v0.3.4) implements the following S3 methods (Table 14.3),
Table 14.3: S3 methods of groupedHyperframe::attr_ (v0.3.4)
visible
isS4
attr_.anylist
TRUE
FALSE
attr_.hyperframe
TRUE
FALSE
The S3 generic function attr_.anylist()
extracts specified attribute per element of the input anylist;
returns an anylist.
Listing 14.6 finds the 'class'-attribute per point-pattern in the point-pattern-list ('ppplist', Chapter 36) btb.extra (Section 9.6).
Section 14.5 is intended as an educational piece for beginners to R version 4.5.2 (2025-10-31) and package spatstat.geom (v3.7.0.6). This section does not discuss the functionality of package groupedHyperframe (v0.3.4).
The default method of the S3 generic function base::split() splits an anylist into a list-of-anylist. This feature is made possible by the magic of the S3 method spatstat.geom::`[.anylist` (v3.7.0.6).
Myllymäki, Mari, and Tomáš Mrkvička. 2024. “GET: Global Envelopes in R.”Journal of Statistical Software 111 (3): 1–40. https://doi.org/10.18637/jss.v111.i03.