remove.NAs.stack: Remove unpaired NA cells from a RasterStack

View source: R/remove.NAs.stack.R

remove.NAs.stackR Documentation

Remove unpaired NA cells from a RasterStack

Description

The function removes unpaired NA cells from a RasterStack.

Usage

remove.NAs.stack(rast.stack)

Arguments

rast.stack

a RasterStack object where to remove NAs.

Value

A RasterStack object without unpaired NA cells.

Author(s)

Mirko Di Febbraro

Examples


library(raster)
raster(system.file("exdata/prediction_ground_thinned.gri",
package="EcoPast"))->prediction_ground_thinned
raster(system.file("exdata/prediction_ground.gri", package="EcoPast"))->prediction_ground
s1<-stack(prediction_ground, prediction_ground_thinned)
plot(s1)

summary(rasterToPoints(s1))

s2<-remove.NAs.stack(s1)

summary(rasterToPoints(s2))


francesco-carotenuto/EcoPast documentation built on April 16, 2023, 5:48 p.m.