View source: R/remove.NAs.stack.R
remove.NAs.stack | R Documentation |
The function removes unpaired NA cells from a RasterStack.
remove.NAs.stack(rast.stack)
rast.stack |
a |
A RasterStack
object without unpaired NA cells.
Mirko Di Febbraro
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.