Learn R Programming

ursa (version 3.9.4)

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

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.

See Also

band_blank

Examples

Run this code
# NOT RUN {
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