getCores | R Documentation |
This function calculates the number of cores to use for multi-core functions based on user preferences, size of the raster object, number of available cores, and whether or not the user wants to use multi-core functionality even if it is possible to do the entire raster processing in one block.
getCores(rast, cores = 2, forceMulti = FALSE)
rast |
Raster, RasterStack, or RasterBrick |
cores |
Integer > 0. Number of cores desired to be used. Default is 2. |
forceMulti |
Logical. If |
Integer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.