Skip to content

samc

4.2.1

Spatial Absorbing Markov Chains

0packages depend
7.5Kdownloads / year
52.9%test coverage
13/13checks pass

Overview

About
Maintained by Andrew MarxFirst published 2019-08-2118 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
13OK
Slowest check: 18.0 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.23
52.9%
Coverage · measured lines
4
Dependencies · direct
Check history
  • OK2026-08-04
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • WARNING2026-06-07
    12 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
Show 4 earlier snapshots
  • OK2026-04-25
    12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-04-22
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-04-18
    11 OK · 2 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
not tracked
Return-value docs
not tracked
References docs
0%

Downloads

7.5K
CRAN downloads in the past year
Rank #4,768 · ~21/day · ~624/mo
Daily download trend is not available in this view yet.
41830 days
1.6K90 days
7.5K1 year
Compare downloads with other packages →
Also on411 r2u18 autocran

Repository

Repository
15Stars
5Forks
4Open issues
0Open PRs
13Releases
768Commits
1Contributors
absorbing-markov-chainsconnectivitycranlandscape-ecologylandscape-metricsmarkov-chainr
License AGPL-3.0 · 768 commits · Last activity 2026-06-20 · 0% stars, 30d

Stars over time

2025-05-01 · 142026-07-07 · 15

Repository practices

Upstream repositoryBeta

5 development-tooling and community-health practices detected across 3 families in the upstream repository

Checks run against github.com/andrewmarx/samc on 2026-08-16.

Continuous integration (1)
GitHub Actions
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (2)
lintrRStudio project
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
10 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.6.0
Imports (4)
methodsMatrixrasterterra
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

People & History

People (7)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (1)
Author, Maintainer, Copyright holder
Contributors (6)
Contributor
Contributor
Contributor · added in 3.1.0
Contributor · added in 3.1.0
Contributor
Contributor
Copyright holders (1)
Author, Maintainer, Copyright holder
Package Timeline

18 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 4.2.1Latest
    2026-03-13 · current release · diff ↗
  • 4.1.0
    2026-02-05 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 4.0.0
    2024-10-30 · diff ↗
  • 3.3.0
    2024-07-11 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 3.2.1
    2023-05-09 · diff ↗
  • 3.2.0
    2023-05-04 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 3.1.0
    2023-04-07 · diff ↗
  • 3.0.2
    2023-02-01 · diff ↗
  • 2.0.1
    2022-06-11 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 2.0.0
    2021-10-23 · diff ↗
  • 1.4.1
    2021-09-02 · diff ↗
Show 10 earlier events
  • 1.4.0
    2021-06-27 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.3.0
    2021-04-01 · diff ↗
  • 1.2.1
    2020-11-03 · diff ↗
  • 1.2.0
    2020-10-14 · diff ↗
  • 1.1.0
    2020-05-19 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 1.0.4
    2020-01-08 · diff ↗
  • 1.0.3
    2019-08-21
  • R
    R 3.6.0 released · 2019-04-26

Package metadata

First published
2019-08-21
Total releases
18 / 7 yrs
License
AGPL (>= 3) OSI
Minimum R
≥ 3.6.0
Bundled data
3.1 KB / 3 files
Download size
570 KB
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("samc")
Marx, A., Acevedo, M., Fletcher, R., Griffin, B., Josie, H., Sefair, J., & Wang, C. (2026). samc: Spatial Absorbing Markov Chains (Version 4.2.1) [Computer software]. https://doi.org/10.32614/CRAN.package.samc

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for samc version 4.2.1 [Data set]. HJJB, LLC. Data release v2026-08-18. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy