spatialsample 0.3.0
Breaking changes
-
spatial_clustering_cv()
no longer accepts non-sf objects. Use
rsample::clustering_cv()
for these instead (#126). -
spatial_clustering_cv()
now uses edge-to-edge distances, like the rest of
the package, rather than centroids (#126).
New features
-
All functions now have a
repeats
argument, defaulting to 1, allowing for
repeated cross-validation (#122, #125, #126). -
spatial_clustering_cv()
now has adistance_function
argument, set by
default toas.dist(sf::st_distance(x))
(#126).
Minor improvements and fixes
-
Outputs from
spatial_buffer_vfold_cv()
should now have the correctradius
andbuffer
attributes (#110). -
spatial_buffer_vfold_cv()
now has the correctid
values when using repeats (#116). -
spatial_buffer_vfold_cv()
now throws an error whenrepeats > 1 && v >= nrow(data)
(#116). -
The minimum
sf
version required is now>= 1.0-9
, so that unit objects can be passed tocellsize
inspatial_block_cv()
(#113; #124). -
autoplot()
now handles repeated cross-validation properly (#123).