classRaster_na.omit: Drop bands which don't have data.

na.omitR Documentation

Drop bands which don't have data.

Description

The bands with band_blank images, are omitted.

Usage

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

Arguments

object

Object of class ursaRaster.

...

Ignored. For consistence with definition of generic function.

Value

Object of class ursaRaster, which has no bands without any data.

Author(s)

Nikita Platonov platonov@sevin.ru

See Also

band_blank

Examples

session_grid(NULL)
session_grid(regrid(mul=1/4))
a <- ursa_new(value=1:3)
print(a)
a[2] <- NA
print(a)
a2 <- na.omit(a)
print(a2)

nplatonov/ursa documentation built on Feb. 2, 2024, 4:08 a.m.