- Spatial disaggregation using
method.sample = "by_area"
works properly again. Replaced use of deprecated functionterra::area()
withterra::expanse()
. This should mean that rdsmart should be compatible with spatial data in a longitude/latitude CRS (but it's not tested).
- Repackaged demonstration data
dalrymple_covariates
anddalrymple_polygons
as (wrapped) SpatRaster and SpatVector objects respectively. Useterra::unwrap()
to unwrap before use. Updated example code accordingly. - Added vignette by Matthew Coghill to explain major underlying changes to package from v2.1.0.
- Replaced
raster
package functions with equivalentterra
package functions. This requires at leastterra
version 1.1-17 (CRAN). - Wrote C++ sorting and ordering algorithms
- Commented out the
.onAttach()
message sinceterra
takes care of previous issues - Updated
NAMESPACE
andDESCRIPTION
to handle package updates. Bumped minimum R version to 3.5.0 to mirrorterra
minimum version. RemovedC50
import sincedisaggregate
will install and load external model packages. - Cleaned up man folder
- Created
NEWS.md
. - Updated doi links in documentation for
disaggregate()
,dsmart()
andsummarise()
to https. - Implemented
shannon_entropy()
to compute Shannon's entropy (rather than compute it insidesummarise()
) and fixed a bug in its previous implementation. - Improved documentation for
confusion_index()
. - The function
summarise()
now usesconfusion_index()
andshannon_entropy()
to compute the confusion index and Shannon's entropy rather than computing them itself. - Implemented
.onAttach()
to display a message when the package is loaded to explain that writing rasters may fail under GDAL >= 3 and PROJ >= 6.