我想将我的数组转换为一个数据帧,其中的"集群"列将有数字5,4,2,1,...和带有数字1、2、3、4的"趋势"...
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11]
cluster 5 4 2 1 2 4 1 2 2 5 1
我期望的是:
Trend Cluster
1 5
2 4
3 2
4 1
...