In K-Means Clustering, you may encounter an error from purrr::map.
This error occurs when the number of unique combinations of values in the variables used for K-Means Clustering is smaller than the “Max Number of Clusters to Explore” setting in the Elbow Method.
Examples:
If you are using only one column with a 5-point scale, there are only 5 possible values (1 through 5), so the “Max Number of Clusters to Explore” must be 5 or less.
If you are using two columns with 0/1 values, there are only 4 possible combinations “0, 0”, “1, 0”, “0, 1”, and “1, 1” so the “Max Number of Clusters to Explore” must be 4 or less.
To resolve this error, you can either reduce the “Max Number of Clusters to Explore” or set “Find Optimal Number of Clusters” to FALSE.

