Changes in version 0.1.4 (2026-04-22) Improved way to assign code values (levels) to categorical SpatRaster objects to prevent issues in rare cases when many variables are considered. Changes in version 0.1.3 (2025-04-24) Column names of the data.frame used to define levels in categorical SpatRaster objects were changed to ("id" and "category") to prevent issues when reading such objects after writing them as raster files in local directories. Changes in version 0.1.2 (2024-03-28) A new argument in mop and mop_distance (tol = NULL) allow users to play with the a tolerance value when calculating Mahalanobis distances. Changes in version 0.1.1 (2023-06-12) Euclidean distance calculation uses our c++ function to avoid non-needed dependencies. Changes in version 0.1.0 This is the first complete version of mop.