Learn R Programming

ursa (version 3.11.1)

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

Description

The bands with band_blank images, are omitted.

Usage

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

Value

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

Arguments

object

Object of class ursaRaster.

...

Ignored. For consistence with definition of generic function.

Author

Nikita Platonov platonov@sevin.ru

See Also

band_blank

Examples

Run this code
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)

Run the code above in your browser using DataLab