Dear all, I have object where I stored clusters in the following manner:

---CLUSTER 1 ---
3
4
5
6
---CLUSTER 2 ---
9
10
8
11

Now want to format the data in the following way:

Object  Cluster
3            1
4            1
5            1
6            1
9             2
10           2
8             2
11           2


How can I do this in R?

Thanks

Nico

	[[alternative HTML version deleted]]


