SpaDES.tools2.1.1 package

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

adj

Fast adjacent function, and Just In Time compiled version

cir

Identify pixels in a circle or ring (doughnut) around an object.

cirSpecialQuick

This is a very fast version of cir with allowOverlap = TRUE, `allo...

crw

Move

deprecated

fastCrop is deprecated.

directions

Calculate distances and directions between many points and many grid c...

distanceFromEachPoint

Calculate distances and directions between many points and many grid c...

distances

Alternative point distance (and direction) calculations

duplicated

Rcpp duplicated on integers using Rcpp Sugar

dwrpnorm2

Vectorized wrapped normal density function

findFactors

Find factors

gaussMap

Produce a raster of a random Gaussian process.

heading

Heading between spatial points.

initiateAgents

SELES - Initiate agents

inRange

Test whether a number lies within range [a,b]

matchedPointDirection

Calculate matched point directions

middlePixel

Return the (approximate) middle pixel on a raster

neutralLandscapeMap

Produce a neutral landscape using a midpoint displacement algorithm

patchSize

Patch size

pkgEnv

The SpaDES.tools package environment

randomPolygons

Produce a SpatRaster of random polygons

randomStudyArea

Create default study areas for use with SpaDES modules

rasterizeReduced

Convert reduced representation to full raster

rcpp-extras

Rcpp Sugar version of runif

resample

Adapted directly from the base::sample() help file.

rings

Identifies all cells within a ring around the focal cells

sampleV

Resample

SELESagentLocation

SELES - Agent Location at initiation

SELESnumAgents

SELES - Number of Agents to initiate

SELESprobInit

SELES - Probability of Initiation

SELEStransitions

SELES - Transitioning to next time step

SpaDES.tools-package

Categorized overview of the SpaDES.tools package

specnumperpatch-probs

Initiate a specific number of agents in a map of patches

splitRaster

Split and re-merge RasterLayer(s)

spokes

Identify outward radiating spokes from initial points

spread

Simulate a spread process on a landscape.

spread2-internals

Internal helpers

spread2

Simulate a contagious spread process on a landscape, with data.table...

spread3

An alternative spread function, conceived for insects

testEquivalentMetadata

Test that metadata of 2 or more objects is the same

wrap

Wrap coordinates or pixels in a torus-like fashion

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>).

  • Maintainer: Alex M Chubaty
  • License: GPL-3
  • Last published: 2026-01-11