is.NAobject: Recognise NA Objects

View source: R/NAobjects.R

is.NAobjectR 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

and \ege.

See Also

NAobject

Examples

   A <- NAobject("ppp")
   is.NAobject(A)

   X <- solist(cells, NA, cells)
   is.NAobject(X[[2]])
   sapply(X, is.NAobject)

spatstat.geom documentation built on Aug. 8, 2025, 6:28 p.m.