The changeRanger package provides functionality for working with collections of species range maps. There are two main types of functions - those meant for large multispecies analyses (tested up to 200,000+) and for single species analysis. For full information on each function, see the associated help file.
setupSparseSpeciesMatrixStuff
setupSummaryDirectories
richnessFromCBS
richnessFromCBSAttr
rangeArea
rangeAreaInBinaryStack
rangeAreaRaster
aggregateCells
Aggregate cells and connect cell IDs at different scalesfdMapPlot
These functions are only for users who want to write custom functions
.speciesIndexTable
Create a table linking species names with their index in CBS matrices; can optionally be used as a template for a speciesAttributeTable
.cellIndexTable
Create a table linking cell IDs with their index in CBS matrices and their longitude and latitude; can optionally be used as a template for a cellAttributeTable
..speciesByCellLongFormat
Convert rasters to long format data frames. These long formats are needed before .cellBySpeciesMatrices
because a matrix of cells (C) by species (S) may not fit into memory .cellBySpeciesMatrices
Make cell by species (CBS) matrices split into a specified number of chunks over cells..chunkFinder
used internally to read in only the necessary chunks for a given analysisAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.