Package: SpaDES.tools 2.2.0

Alex M Chubaty

SpaDES.tools: Additional Tools for Developing Spatially Explicit Discrete Event Simulation (SpaDES) Models

Provides GIS and map utilities, plus additional modeling tools for developing cellular automata, dynamic raster models, and agent based models in 'SpaDES'. Included are various methods for spatial spreading, spatial agents, GIS operations, random map generation, and others. See '?SpaDES.tools' for a categorized overview of these additional tools.

Authors:Eliot J B McIntire [aut], Alex M Chubaty [aut, cre], Yong Luo [ctb], Ceres Barros [ctb], Steve Cumming [ctb], Jean Marchal [ctb], His Majesty the King in Right of Canada, as represented by the Minister of Natural Resources Canada [cph]

SpaDES.tools_2.2.0.tar.gz
SpaDES.tools_2.2.0.zip(r-4.7-x86_64)SpaDES.tools_2.2.0.zip(r-4.7-arm64)SpaDES.tools_2.2.0.zip(r-4.6-x86_64)SpaDES.tools_2.2.0.zip(r-4.6-arm64)
SpaDES.tools_2.2.0.tar.gz(r-4.7-arm64)SpaDES.tools_2.2.0.tar.gz(r-4.7-x86_64)SpaDES.tools_2.2.0.tar.gz(r-4.6-arm64)SpaDES.tools_2.2.0.tar.gz(r-4.6-x86_64)
SpaDES.tools_2.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
SpaDES.tools/json (API)

# Install 'SpaDES.tools' in R:
install.packages('SpaDES.tools', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/predictiveecology/spades.tools/issues

Pkgdown/docs site:https://spades-tools.predictiveecology.org

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

4.77 score 5 packages 65 scripts 519 downloads 4 mentions 38 exports 17 dependencies

Last updated from:ec677817ae. Checks:10 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK306
linux-devel-x86_64OK355
source / vignettesOK221
linux-release-arm64OK319
linux-release-x86_64OK261
windows-devel-arm64OK421
windows-devel-x86_64OK391
windows-release-arm64OK437
windows-release-x86_64OK324
wasm-releaseOK141

Exports:.pointDistanceadjagentLocationallInRange01circrwdirectionFromEachPointdistanceFromEachPointdwrpnorm2fastCropgaussMapheadinginitiateAgentsinRangemergeRastermiddlePixelmoveneutralLandscapeMapnumAgentsprobInitrandomPolygonrandomPolygonsrandomStudyArearasterizeReducedrastFromDFringsrunifCspecificNumPerPatchsplitRasterspokesspreadspread2spread3spreadCpptestEquivalentMetadatatransitionswrapwrapTorus

Dependencies:backportscheckmateclicpp11crayondata.tabledigestfilelockfpComparefslifecyclelobstrprettyunitsRcppreproduciblerlangterra

Readme and manuals

Help Manual

Help pageTopics
Categorized overview of the 'SpaDES.tools' packageSpaDES.tools-package SpaDES.tools
Alternative point distance (and direction) calculations.pointDistance pointDistance
Fast 'adjacent' function, and Just In Time compiled versionadj
'SELES' - Agent Location at initiationagentLocation
Are all values in [0, 1], ignoring 'NA'?allInRange01
Identify pixels in a circle or ring (doughnut) around an object.cir
This is a very fast version of 'cir' with 'allowOverlap = TRUE', 'allowDuplicates = FALSE', 'returnIndices = TRUE', 'returnDistances = TRUE', and 'includeBehavior = "excludePixels"'. It is used inside 'spread2', when asymmetry is active. The basic algorithm is to run 'cir' just once, then add to the x,y coordinates of every locus..cirSpecialQuick cirSpecialQuick
Calculate distances and directions between many points and many grid cellsdistanceFromEachPoint
Rcpp duplicated on integers using Rcpp SugarduplicatedInt
Vectorized wrapped normal density functiondwrpnorm2
'fastCrop' is deprecated.fastCrop
Produce a 'raster' of a random Gaussian process.gaussMap
Heading between spatial points.heading
'SELES' - Initiate agentsinitiateAgents
Test whether a number lies within range [a,b]inRange
Split and re-merge 'RasterLayer'(s)mergeRaster mergeRaster,list-method splitRaster
Return the (approximate) middle pixel on a rastermiddlePixel
Movecrw move
Produce a neutral (random) landscape rasterneutralLandscapeMap
SELES - Number of Agents to initiatenumAgents
Patch sizepatchSize
'SELES' - Probability of InitiationprobInit
Produce a 'SpatRaster' of random polygonsrandomPolygon randomPolygon.default randomPolygons
Create default study areas for use with 'SpaDES' modulesrandomStudyArea
Convert reduced representation to full rasterrasterizeReduced
Build a multi-layer SpatRaster from a sparse cell/value tablerastFromDF
Identifies all cells within a ring around the focal cellsrings
Rcpp Sugar version of runifrunifC
Initiate a specific number of agents in a map of patchesspecificNumPerPatch
Identify outward radiating spokes from initial pointsspokes
Simulate a spread process on a landscape.spread
Simulate a contagious spread process on a landscape, with 'data.table' internalsspread2
An alternative spread function, conceived for insectsspread3
Stochastic outward spread, implemented in C++spreadCpp
Test that metadata of 2 or more objects is the sametestEquivalentMetadata
'SELES' - Transitioning to next time step (defunct)transitions
Wrap coordinates or pixels in a torus-like fashionwrap wrapTorus