Description Usage Arguments Value Author(s)
View source: R/bootstrapPercentChanges.R
Bootstraps rasters for testing significancy on comparable rasters of different species or scenarios
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
)
|
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 |
list of significant species or scenarios with indication of increasing or decreasing
Tati Micheletti
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.