Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Extract.solist

Extract or Replace Subset of a List of Spatial Objects


Description

Extract or replace some entries in a list of spatial objects, or extract a designated sub-region in each object.

Usage

## S3 method for class 'solist'
x[i, ...]

  ## S3 replacement method for class 'solist'
x[i] <- value

Arguments

x

An object of class "solist" representing a list of two-dimensional spatial objects.

i

Subset index. Any valid subset index for vectors in the usual R sense, or a window (object of class "owin").

value

Replacement value for the subset.

...

Ignored.

Details

These are methods for extracting and replacing subsets for the class "solist".

The argument x should be an object of class "solist" representing a list of two-dimensional spatial objects. See solist.

For the subset method, the subset index i can be either a vector index (specifying some elements of the list) or a spatial window (specifying a spatial sub-region).

For the replacement method, i must be a vector index: the designated elements will be replaced.

Value

Another object of the same class as x.

Author(s)

Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk

See Also

Examples

x <- solist(japanesepines, cells, redwood)
   x[2:3]
   x[square(0.5)]
   x[1] <- list(finpines)

spatstat.geom

Geometrical Functionality of the 'spatstat' Family

v2.1-0
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Tilman Davies [ctb], Ute Hahn [ctb], Abdollah Jalilian [ctb], Sebastian Meyer [ctb], Suman Rakshit [ctb], Dominic Schuhmacher [ctb], Rasmus Waagepetersen [ctb]
Initial release
2021-04-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.