is.na.hyperframe {spatstat.geom}R Documentation

Identify Missing Entries in a Hyperframe

Description

Given a hyperframe, this function returns a logical matrix specifying which entries of the hyperframe are missing.

Usage

## S3 method for class 'hyperframe'
is.na(x)

Arguments

x

A hyperframe (object of class "hyperframe").

Details

This function returns a logical matrix, with the same dimensions as the hyperframe x, with the value TRUE in each position where the corresponding entry in the hyperframe is missing.

An entry x[i,j] is deemed to be missing if it is either NA (representing a missing value in an atomic vector) or is an object of class "NAobject" (representing a missing object of a particular class in the spatstat package family).

Value

A logical matrix with the same dimensions as x.

Author(s)

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

See Also

NAobject

Examples

  A <- c(1, NA, 3)
  B <- solist(cells, cells, NA)
  h <- hyperframe(A=A, B=B)
  h
  is.na(h)

[Package spatstat.geom version 3.5-0 Index]