# subset.splitppp

From spatstat v1.13-2
by Adrian Baddeley

##### Extract or Replace Sub-Patterns

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

##### Usage

```
## S3 method for class 'splitppp':
[(x, i)
## S3 method for class 'splitppp':
[(x, i) <- value
```

##### Arguments

- x
- An object of class
`"splitppp"`

, representing a point pattern separated into a list of sub-patterns. - i
- Subset index. Any valid subset index in the usual Rsense.
- value
- Replacement value for the subset. A list of point patterns.

##### 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"`

.

##### Value

- Another object of class
`"splitppp"`

.

##### See Also

##### Examples

```
data(amacrine) # multitype point pattern
y <- split(amacrine)
y[1]
y["off"]
y[1] <- list(runifpoint(42, amacrine$window))
```

*Documentation reproduced from package spatstat, version 1.13-2, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.