samc: Spatial Absorbing Markov Chains

Implements functions for working with absorbing Markov chains. The implementation is based on the framework described in "Toward a unified framework for connectivity that disentangles movement and mortality in space and time" by Fletcher et al. (2019) <doi:10.1111/ele.13333>, which applies them to spatial ecology. This framework incorporates both resistance and absorption with spatial absorbing Markov chains (SAMC) to provide several short-term and long-term predictions for metrics related to connectivity in landscapes. Despite the ecological context of the framework, this package can be used in any application of absorbing Markov chains.

Version: 3.0.2
Depends: R (≥ 3.6.0)
Imports: methods, Matrix (≥ 1.5-3), raster, terra (≥ 1.7-3)
LinkingTo: Rcpp (≥ 1.0.10), RcppEigen (≥, RcppThread (≥ 2.1.3)
Suggests: knitr, rmarkdown, testthat, gdistance, viridisLite
Published: 2023-02-01
Author: Andrew Marx ORCID iD [aut, cre, cph], Robert Fletcher ORCID iD [ctb], Miguel Acevedo ORCID iD [ctb], Jorge Sefair ORCID iD [ctb], Chao Wang ORCID iD [ctb]
Maintainer: Andrew Marx <ajm.rpackages at>
License: GPL (≥ 3)
NeedsCompilation: yes
Citation: samc citation info
Materials: NEWS
CRAN checks: samc results


Reference manual: samc.pdf
Vignettes: Circuit Theory
Code Snippets
Disconnected Data
Coin Flip
Maze Part 1
Maze Part 2
Maze Part 3
Parallel Computing
Basic Tutorial
ggplot Visualization
Multiple Absorption Tutorial
Temporal Analysis


Package source: samc_3.0.2.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): samc_3.0.2.tgz, r-oldrel (arm64): samc_2.0.1.tgz, r-release (x86_64): samc_3.0.2.tgz, r-oldrel (x86_64): samc_2.0.1.tgz
Old sources: samc archive


Please use the canonical form to link to this page.