cellBySpeciesMatrices: Make cell by species (CBS) matrices split into a specified...

View source: R/fdCBS.r

cellBySpeciesMatricesR Documentation

Make cell by species (CBS) matrices split into a specified number of chunks over cells.

Description

Convert a folder of species range maps to a sparse matrix

Usage

cellBySpeciesMatrices(
  outDir,
  rasterFiles,
  spNames,
  scenario,
  sp.ind,
  cell.ind,
  envGrid,
  nCellChunks,
  removeTempFiles = FALSE,
  mc.cores = mc.cores,
  overwrite = FALSE,
  reprojectToEnv = F,
  verbose = F
)

Arguments

scenario

character; any user-defined terms for scenarios are acceptable. For example, ‘Present’, ’2050’, ’2070’

nCellChunks

integer - number of chunks to break species and cell lists into in order to reduce memory demands. Use more chunks if your computer doesn't have a lot of RAM

mc.cores

number of cores to use

overwrite

logical; overwrite existing files?

reprojectToEnv

logical; if the species rasters are not in the same projection as 'envGrid', set to TRUE to reproject first.

sumDirs

a list of directories as created by 'setupSummaryDirectories'

env

a raster object defining the grid associated with cell indices

allSpeciesMaps

a list with two elements of the same length named 'rasterFile' (full paths to rasters) and 'speciesNames' (taxon names associated with each raster file)

verbos

logical; print optional status reports # @examples#@return NULL

Author(s)

Cory Merow <cory.merow@gmail.com>, Pep Serra-Diaz # @note# @seealso# @references# @aliases - a list of additional topic names that will be mapped to# this documentation when the user looks them up from the command# line.# @family - a family name. All functions that have the same family tag will be linked in the docum@export


andrepazv/changeRangeR documentation built on May 7, 2022, 3:38 p.m.