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
  • 91,361
  • 17
  • 137
  • 196
Matthias
  • 17
  • 3

0 Answers0