Package: spatialsample 0.6.0.9000

Michael Mahoney

spatialsample: Spatial Resampling Infrastructure

Functions and classes for spatial resampling to use with the 'rsample' package, such as spatial cross-validation (Brenning, 2012) <doi:10.1109/IGARSS.2012.6352393>. The scope of 'rsample' and 'spatialsample' is to provide the basic building blocks for creating and analyzing resamples of a spatial data set, but neither package includes functions for modeling or computing statistics. The resampled spatial data sets created by 'spatialsample' do not contain much overhead in memory.

Authors:Michael Mahoney [aut, cre], Julia Silge [aut], Posit Software, PBC [cph, fnd]

spatialsample_0.6.0.9000.tar.gz
spatialsample_0.6.0.9000.zip(r-4.7)spatialsample_0.6.0.9000.zip(r-4.6)spatialsample_0.6.0.9000.zip(r-4.5)
spatialsample_0.6.0.9000.tgz(r-4.6-x86_64)spatialsample_0.6.0.9000.tgz(r-4.6-arm64)spatialsample_0.6.0.9000.tgz(r-4.5-x86_64)spatialsample_0.6.0.9000.tgz(r-4.5-arm64)
spatialsample_0.6.0.9000.tar.gz(r-4.7-arm64)spatialsample_0.6.0.9000.tar.gz(r-4.7-x86_64)spatialsample_0.6.0.9000.tar.gz(r-4.6-arm64)spatialsample_0.6.0.9000.tar.gz(r-4.6-x86_64)
spatialsample_0.6.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
spatialsample/json (API)
NEWS

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

Bug tracker:https://github.com/tidymodels/spatialsample/issues

Pkgdown/docs site:https://spatialsample.tidymodels.org

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

On CRAN:

Conda:

cpp

9.52 score 77 stars 4 packages 273 scripts 4.3k downloads 9 exports 51 dependencies

Last updated from:9a44b7c273. Checks:10 OK, 3 WARNING. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK352
linux-devel-x86_64OK337
source / vignettesOK281
linux-release-arm64OK328
linux-release-x86_64OK310
macos-release-arm64OK196
macos-release-x86_64OK478
macos-oldrel-arm64WARNING255
macos-oldrel-x86_64WARNING474
windows-develOK303
windows-releaseOK282
windows-oldrelWARNING297
wasm-releaseOK127

Exports:analysisassessmentautoplotget_rsplitspatial_block_cvspatial_buffer_vfold_cvspatial_clustering_cvspatial_leave_location_out_cvspatial_nndm_cv

Dependencies:classclassIntclicodetoolscpp11DBIdigestdplyre1071farverfurrrfuturegenericsggplot2globalsgluegtableisobandKernSmoothlabelinglifecyclelistenvmagrittrMASSparallellypillarpkgconfigproxypurrrR6RColorBrewerRcpprlangrsamples2S7scalessfsliderstringistringrtibbletidyrtidyselectunitsutf8vctrsviridisLitewarpwithrwk

Using spatial resamples for analysis

Rendered fromspatialsample.Rmdusingknitr::rmarkdownon May 22 2026.

Last update: 2023-03-14
Started: 2021-01-20

Readme and manuals

Help Manual

Help pageTopics
Create a ggplot for spatial resamples.autoplot.spatial_block_cv autoplot.spatial_rset
Boston tree canopy and heat index data.boston_canopy
Spatial block cross-validationspatial_block_cv
V-Fold Cross-Validation with Bufferingspatial_buffer_vfold_cv spatial_leave_location_out_cv
Spatial Clustering Cross-Validationspatial_clustering_cv
Nearest neighbor distance matching (NNDM) cross-validationspatial_nndm_cv