Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

intFun.grid.significance

Set significant differences to NA


Description

This function sets all values that are equal or less than 0.05 to NA. Applied to a raster that shows the p-values of a significance test, the function sets all statistically significant differences to NA at the 5 percent level.

Usage

intFun.grid.significance(x)

Arguments

x

A raster object

Value

A raster object

Examples

library(raster)
# make some data
data <- runif(100,0,1)
data <- matrix(data, ncol=10)
data <- raster::raster(data)
# repeat raster stack 10 times
data <- intFun.grid.significance(data)
plot(data); text(data, digits=2)

amber

Automated Model Benchmarking R Package

v1.0.3
GPL-3
Authors
Christian Seiler [cre, aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.