Perform an unspervised clustering of a SpatRaster
Usage
regionalization(x, centers, iter.max = 100, nstart = 100, algorithm = "Lloyd")
Arguments
- x
SpatRaster
- centers
Integer. Number of clusters.
- iter.max
Integer. The maximum number of iterations allowed. Default 100.
- nstart
Integer. How many random sets should be chosen? Default 100.
- algorithm
Default Lloyd.
Value
a list with:
A list with the results of the K-means performance
A SpatRaster with the final regionalization
A list with the results of the K-means performance