Question: [R] I need help with one question. I already have my clusters, but I don't know how to use the which() function to find the
[R] I need help with one question. I already have my clusters, but I don't know how to use the which() function to find the indices. Thanks in advance.
![[R] I need help with one question. I already have my clusters,](https://s3.amazonaws.com/si.experts.images/answers/2024/09/66df63bab528b_09066df63ba484be.jpg)
13. Partition the vector into 4 clusters Function needed: Ckmeans.1d.dp (! 14. Reporthe positions (indices) of the numbers in each cluster Function needed: which() For example, if the clustering results are 1 4314111231111212124, then numbers at indices 1 4 678 11 12 13 14 16 18 belong to cluster 1 and so on 13. Partition the vector into 4 clusters Function needed: Ckmeans.1d.dp (! 14. Reporthe positions (indices) of the numbers in each cluster Function needed: which() For example, if the clustering results are 1 4314111231111212124, then numbers at indices 1 4 678 11 12 13 14 16 18 belong to cluster 1 and so on
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
