Learn R Programming

spatstat.geom (version 3.6-0)

NAobject: Make an NA Object

Description

Create a object which represents a missing or unavailable object of a particular class in the spatstat package family.

Usage

NAobject(cls)

Value

An object belonging to the classes "NAobject" and cls.

Arguments

cls

Character string specifying a class.

Author

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

Details

This function creates an object which represents a missing or unavailable object belonging to one of the classes in the spatstat package family.

For example NAobject("ppp") creates an object which inherits the classes "NAobject" and "ppp", and effectively represents a point pattern dataset that is missing or unavailable.

Typical uses of NA objects include simulation algorithms (where the algorithm may sometimes fail to produce a result) and designed experiments (where data may be missing for some of the experimental cases).

An NA object can be recognised by is.NAobject.

NA entries in a hyperframe can be recognised by is.na.hyperframe. NA entries in a spatial object list can be recognised by is.na.solist.

See Also

is.NAobject, is.na.hyperframe, is.na.solist.

Examples

Run this code
  NAobject("tess")

Run the code above in your browser using DataLab