spatdim

0th

Percentile

Spatial Dimension of a Dataset

Extracts the spatial dimension of an object in the spatstat package.

Usage
spatdim(X)
Arguments
X

Object belonging to any class defined in the spatstat package.

Details

This function returns the number of spatial coordinate dimensions of the dataset X. The results for some of the more common types of objects are as follows:

object class dimension
"ppp" 2
"lpp" 2
"pp3" 3
"ppx" number of spatial dimensions
"owin" 2
"psp" 2

Note that time dimensions are not counted.

If X is not a recognised spatial object, the result is NA.

Value

An integer, or NA.

Aliases
  • spatdim
Examples
# NOT RUN {
  spatdim(lansing)
# }
Documentation reproduced from package spatstat, version 1.57-1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.