R: Convert Measure To Layered Object

as.layered.msr {spatstat.core} | R Documentation

## Convert Measure To Layered Object

### Description

Converts a measure into a layered object.

### Usage

     ## S3 method for class 'msr'
    as.layered(X)

### Arguments

`X` | A measure (object of class `"msr"`).

### Details

This function converts the object `X` into an object of class `"layered"`.

It is a method for the generic `as.layered` for the class of measures.

If `X` is a vector-valued measure, then `as.layered(X)` consists of several layers, each containing a scalar-valued measure.

### Value

An object of class `"layered"` (see `layered`).

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

`as.layered`, `msr`.

### Examples

       P <- rpoispp(100)
       fit <- ppm(P ~ x+y)
       rs <- residuals(fit, type="score")
       as.layered(rs)

[Package spatstat.core version 2.3-0 Index]