is.NAobject {spatstat.geom} | R Documentation |
Recognise NA Objects
Description
Recognises whether an object is an NA object (representing a missing or unavailable object in the spatstat package family).
Usage
is.NAobject(x)
Arguments
x |
An object. |
Details
This function recognises whether an object is a missing or unavailable object belonging to one of the classes in the spatstat package family.
In spatstat, a missing or unavailable object of class
"foo"
is represented by an object that inherits
the classes "foo"
and "NAobject"
.
For any object x
, the command
is.NAobject(x)
will return TRUE
if
x
is a missing or unavailable object, and FALSE
otherwise.
Value
A single logical value.
Author(s)
Adrian Baddeley Adrian.Baddeley@curtin.edu.au and Ege Rubak rubak@math.aau.dk.
See Also
Examples
A <- NAobject("ppp")
is.NAobject(A)
X <- solist(cells, NA, cells)
is.NAobject(X[[2]])
sapply(X, is.NAobject)
[Package spatstat.geom version 3.5-0 Index]