trim2 | R Documentation |
Removes complete outer rows and columns which have NA
values.
trim2(x)
x |
A two-dimensional |
A new stars
object with empty outer rows and columns removed
# Single-band example
data(dem)
dem[[1]][1,] = NA
dem1 = trim2(dem)
# Multi-band example
data(landsat)
landsat[[1]][1:100,,] = NA
landsat1 = trim2(landsat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.