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

Description Usage Arguments Value Author(s) Examples

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

Description

The function removes unpaired NA cells from a RasterStack.

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
library(raster)
raster(system.file("exdata/prediction_ground_thinned.gri",
package="DeepTime"))->prediction_ground_thinned
raster(system.file("exdata/prediction_ground.gri", package="DeepTime"))->prediction_ground
s1<-stack(prediction_ground, prediction_ground_thinned)
raster.leaflet.plot(s1)

summary(rasterToPoints(s1))

s2<-remove.NAs.stack(s1)

summary(rasterToPoints(s2))

## End(Not run)

francesco-carotenuto/PaleoMacroEco documentation built on Dec. 23, 2019, 6:36 p.m.