na.omit.ppp {groupedHyperframe}R Documentation

Handle Missing marks in ppp.object.

Description

Handle Missing marks in ppp.object.

Usage

## S3 method for class 'ppp'
na.omit(object, ...)

Arguments

object

a ppp.object

...

additional parameters, currently not in use

Details

Function na.omit.ppp() omits missing marks in a ppp.object.

Value

Function na.omit.ppp() returns a ppp.object.

Note

tzh suppose missing ⁠$x⁠ and ⁠$y⁠ are forbidden in ppp.object anyway.

Examples

library(spatstat.data)
library(spatstat.geom)

npoints(nbfires)
npoints(na.omit.ppp(nbfires))

npoints(amacrine)
npoints(na.omit.ppp(amacrine)) # no missing marks to be removed

nbfires_julian = unstack.ppp(nbfires)$out.julian
suppressWarnings(print.ppp(nbfires_julian))
suppressWarnings(plot.ppp(nbfires_julian))
na.omit.ppp(nbfires_julian)

[Package groupedHyperframe version 0.2.4 Index]