bootstrapPercentChanges: Bootstraps rasters for testing significancy on comparable...

Description Usage Arguments Value Author(s)

View source: R/bootstrapPercentChanges.R

Description

Bootstraps rasters for testing significancy on comparable rasters of different species or scenarios

Usage

1
2
3
4
5
6
7
8
9
bootstrapPercentChanges(
  dataPath,
  years = c(2001, 2100),
  sampleSize = "auto",
  n = 100,
  shp = NULL,
  species = NULL,
  useFuture = FALSE
)

Arguments

dataPath

character. Path to raster data.

years

numeric. Years to compare. Currently this function only compares 2 years.

sampleSize

numeric or "auto" (default). What is the sample size (i.e. number of pixels) we want to use on the bootstrapping? If "auto" it calculates internally Cohen's D And Hedges G Effect Size.

n

numeric. Default is 100. How many iterations (random selection of 'sampleSize' pixels) should be done?

shp

character or shapefile. If you wish to calculate these metrics for separate areas. Needs to match the rasters. Default is NULL (i.e. the whole raster is only one area)

species

character. Default is NULL. Which species should this function be ran ?

useFuture

logical. Should use future to parallelize? Requires 'future' and 'future_apply“ packages

Value

list of significant species or scenarios with indication of increasing or decreasing

Author(s)

Tati Micheletti


tati-micheletti/usefun documentation built on June 29, 2020, 9:31 a.m.