Deprecation warning

partition_kmeans() has been integrated into mlr (see 2ebd2f). sperrorest is currently not actively developed. We recommend to use mlr for all future (spatial) cross-validation work.


Project Status: Active – The project has reached a stable, usable state and is being actively developed. DOI

Resource: CRAN Travis CI Appveyor
Platforms: Multiple Linux & macOS Windows
R CMD check CRAN version Build status Build status
Test coverage Coverage Status


CRAN_Status_Badge Downloads


Spatial Error Estimation and Variable Importance

This package implements spatial error estimation and permutation-based spatial variable importance using different spatial cross-validation and spatial block bootstrap methods. To cite sperrorest in publications, reference the paper by @Brenning2012. To see the package in action, please check the vignette.


Get the released version from CRAN:


Or the development version from Github:



Brenning, A. 2005. “Spatial Prediction Models for Landslide Hazards: Review, Comparison and Evaluation.” Natural Hazards and Earth System Science 5 (6). Copernicus GmbH:853–62.

———. 2012. “Spatial Cross-Validation and Bootstrap for the Assessment of Prediction Rules in Remote Sensing: The R Package Sperrorest.” In 2012 IEEE International Geoscience and Remote Sensing Symposium, 5372–5.

Russ, Georg, and Alexander Brenning. 2010a. “Data Mining in Precision Agriculture: Management of Spatial Information.” In Computational Intelligence for Knowledge-Based Systems Design: 13th International Conference on Information Processingand Management of Uncertainty, IPMU 2010, Dortmund, Germany, June 28 - July 2, 2010. Proceedings, edited by Eyke Hüllermeier, Rudolf Kruse, and Frank Hoffmann, 350–59. Berlin, Heidelberg: Springer Berlin Heidelberg.

———. 2010b. “Spatial Variable Importance Assessment for Yield Prediction in Precision Agriculture.” In Lecture Notes in Computer Science, 184–95. Springer Science + Business Media.