Learn R Programming

spatstat.geom (version 3.3-2)

Extract.splitppp: Extract or Replace Sub-Patterns

Description

Extract or replace some of the sub-patterns in a split point pattern.

Usage

# S3 method for splitppp
[(x, ...)
  # S3 method for splitppp
[(x, ...) <- value

Value

Another object of class "splitppp".

Arguments

x

An object of class "splitppp", representing a point pattern separated into a list of sub-patterns.

...

Subset index. Any valid subset index in the usual R sense.

value

Replacement value for the subset. A list of point patterns.

Author

Adrian Baddeley Adrian.Baddeley@curtin.edu.au and Rolf Turner rolfturner@posteo.net

Details

These are subset methods for the class "splitppp".

The argument x should be an object of class "splitppp", representing a point pattern that has been separated into a list of sub-patterns. It is created by split.ppp.

The methods extract or replace a designated subset of the list x, and return an object of class "splitppp".

See Also

split.ppp, plot.splitppp, summary.splitppp

Examples

Run this code
  y <- split(amacrine)
  y[[1]]
  y[["off"]]
  y[[1]] <- rsyst(Window(amacrine), 4, 3)
 

Run the code above in your browser using DataLab