spatialRF
1.1.5Easy Spatial Modeling with Random Forest
Overview
Automatic generation and selection of spatial predictors for Random Forest models fitted to spatially structured data. Spatial predictors are constructed from a distance matrix among training samples using Moran's Eigenvector Maps (MEMs; Dray, Legendre, and Peres-Neto 2006 DOI:10.1016/j.ecolmodel.2006.02.015) or the RFsp approach (Hengl et al. DOI:10.7717/peerj.5518). These predictors are used alongside user-supplied explanatory variables in Random Forest models. The package provides functions for model fitting, multicollinearity reduction, interaction identification, hyperparameter tuning, evaluation via spatial cross-validation, and result visualization using partial dependence and interaction plots. Model fitting relies on the 'ranger' package (Wright and Ziegler 2017 DOI:10.18637/jss.v077.i01).
Install
Health
- OK2026-08-0413 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- ERROR2026-06-0812 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
- OK2026-04-2512 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 1 earlier snapshots
- NOTE2026-03-1011 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 97%
- Documented parameters
- 94%
- Return-value docs
- 100%
- References docs
- 0%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
Repository practices
4 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/blasbenito/spatialrf on 2026-08-23.
Dependencies
Nothing depends on this yet.
Code & Tests
Datasets
People & History
3 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- 1.1.5Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 1.1.42022-08-19 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 1.1.32021-09-23
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2021-09-23
- Total releases
- 3 / 5 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 2.10
- Bundled data
- 942 KB / 7 files
- Download size
- 3.4 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("spatialRF")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.
From data release v2026-08-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.