Learn R Programming

spatstat.geom (version 3.6-0)

is.NAobject: 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)

Value

A single logical value.

Arguments

x

An object.

Author

Adrian Baddeley Adrian.Baddeley@curtin.edu.au and Ege Rubak rubak@math.aau.dk.

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.

See Also

NAobject

Examples

Run this code
   A <- NAobject("ppp")
   is.NAobject(A)

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

Run the code above in your browser using DataLab