as.data.frame.envelope

0th

Percentile

Coerce Envelope to Data Frame

Converts an envelope object to a data frame.

Keywords
manip, spatial
Usage
# S3 method for envelope
as.data.frame(x, …, simfuns=FALSE)
Arguments
x

Envelope object (class "envelope").

Ignored.

simfuns

Logical value indicating whether the result should include the values of the simulated functions that were used to build the envelope.

Details

This is a method for the generic function as.data.frame for the class of envelopes (see envelope.

The result is a data frame with columns containing the values of the function argument (usually named r), the function estimate for the original point pattern data (obs), the upper and lower envelope limits (hi and lo), and possibly additional columns.

If simfuns=TRUE, the result also includes columns of values of the simulated functions that were used to compute the envelope. This is possible only when the envelope was computed with the argument savefuns=TRUE in the call to envelope.

Value

A data frame.

Aliases
  • as.data.frame.envelope
Examples
# NOT RUN {
  E <- envelope(cells, nsim=5, savefuns=TRUE)
  tail(as.data.frame(E))
  tail(as.data.frame(E, simfuns=TRUE))
# }
Documentation reproduced from package spatstat, version 1.59-0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.