Package: SpaDES.tools 2.0.7.9000

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 an categorized overview of these additional tools. The suggested package 'NLMR' can be installed from the following repository: (<https://PredictiveEcology.r-universe.dev>).

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.0.7.9000.tar.gz
SpaDES.tools_2.0.7.9000.zip(r-4.5)SpaDES.tools_2.0.7.9000.zip(r-4.4)SpaDES.tools_2.0.7.9000.zip(r-4.3)
SpaDES.tools_2.0.7.9000.tgz(r-4.4-x86_64)SpaDES.tools_2.0.7.9000.tgz(r-4.4-arm64)SpaDES.tools_2.0.7.9000.tgz(r-4.3-x86_64)SpaDES.tools_2.0.7.9000.tgz(r-4.3-arm64)
SpaDES.tools_2.0.7.9000.tar.gz(r-4.5-noble)SpaDES.tools_2.0.7.9000.tar.gz(r-4.4-noble)
SpaDES.tools_2.0.7.9000.tgz(r-4.4-emscripten)SpaDES.tools_2.0.7.9000.tgz(r-4.3-emscripten)
SpaDES.tools.pdf |SpaDES.tools.html
SpaDES.tools/json (API)
NEWS

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

Peer review:

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

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

On CRAN:

7.53 score 4 stars 6 packages 59 scripts 899 downloads 4 mentions 34 exports 15 dependencies

Last updated 5 months agofrom:a8d263c924 (on development). Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 12 2024
R-4.5-win-x86_64OKOct 12 2024
R-4.5-linux-x86_64OKOct 12 2024
R-4.4-win-x86_64OKOct 12 2024
R-4.4-mac-x86_64OKOct 12 2024
R-4.4-mac-aarch64OKOct 12 2024
R-4.3-win-x86_64OKOct 12 2024
R-4.3-mac-x86_64OKOct 12 2024
R-4.3-mac-aarch64OKOct 12 2024

Exports:.pointDistanceadjagentLocationcircrwdirectionFromEachPointdistanceFromEachPointdwrpnorm2fastCropgaussMapheadinginitiateAgentsinRangemergeRastermiddlePixelmoveneutralLandscapeMapnumAgentsprobInitrandomPolygonrandomPolygonsrandomStudyArearasterizeReducedringsrunifCspecificNumPerPatchsplitRasterspokesspreadspread2spread3testEquivalentMetadatatransitionswrap

Dependencies:backportscheckmatecpp11crayondata.tabledigestfilelockfpComparefslobstrprettyunitsRcppreproduciblerlangterra

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
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 landscape using a midpoint displacement algorithmneutralLandscapeMap
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
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
Test that metadata of 2 or more objects is the sametestEquivalentMetadata
'SELES' - Transitioning to next time steptransitions
Wrap coordinates or pixels in a torus-like fashionwrap