0

I have:

c(17,20,30,12,30,20,17,20)

I want:

data.frame(c(1,2,3,2),c(12,17,20,30))

So unique values for the first vector shall be counted and sorted. the number of the counting should be in the first array.

David Arenburg
  • 89,637
  • 17
  • 130
  • 188
Matthias
  • 17
  • 3

0 Answers0