unstack.msr

0th

Percentile

Separate a Vector Measure into its Scalar Components

Converts a vector-valued measure into a list of scalar-valued measures.

Keywords
manip, spatial
Usage
# S3 method for msr
unstack(x, …)
Arguments
x

A measure (object of class "msr").

Ignored.

Details

This is a method for the generic unstack for the class "msr" of measures.

If x is a vector-valued measure, then y <- unstack(x) is a list of scalar-valued measures defined by the components of x. The jth entry of the list, y[[j]], is equivalent to the jth component of the vector measure x.

If x is a scalar-valued measure, then the result is a list consisting of one entry, which is x.

Value

A list of measures, of class "solist".

See Also

unstack

unstack.ppp

split.msr.

Aliases
  • unstack.msr
Examples
# NOT RUN {
   fit <- ppm(cells ~ x)
   m <- residuals(fit, type="score")
   m
   unstack(m)
# }
Documentation reproduced from package spatstat, version 1.55-1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.