Learn R Programming

spatstat.geom (version 3.6-0)

is.na.hyperframe: 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 hyperframe
is.na(x)

Value

A logical matrix with the same dimensions as x.

Arguments

x

A hyperframe (object of class "hyperframe").

Author

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

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).

See Also

NAobject

Examples

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

Run the code above in your browser using DataLab