intFun.grid.significance: Set significant differences to NA

Description Usage Arguments Value Examples

View source: R/intFun.R

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

1

Arguments

x

A raster object

Value

A raster object

Examples

1
2
3
4
5
6
7
8
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 documentation built on Aug. 28, 2020, 5:08 p.m.