is.na.hyperframe: Identify Missing Entries in a Hyperframe

View source: R/hyperframe.R

is.na.hyperframeR 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

and \ege.

See Also

NAobject

Examples

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

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