
106 Spatial Point Patterns: Methodology and Applications with R
4.2.9.1 Splitting a point pattern into sub-patterns
The R generic function split is used to divide data into subsets: split(x, f) divides the dataset
x into subsets determined b y the grouping f.
In spatstat the method split.ppp enables the user to divide a point pattern x into sub-
patterns using a variety of criteria.
If f is a factor, of length equal to the number of points in x, then split(x,f) separates the data
points into groups according to the values of f. The result is a list of point patterns, each with the
same window as x. The names of the list entries are the levels of f