row_number_unique.Rd
Get the row number for unique values.
row_number_unique(x)
A vector
A numeric vector with rank, given the unique values from argument 'x'.
row_number_unique(mtcars$gear) #> [1] 1 1 1 2 2 2 2 1 1 1 1 2 2 2 2 2 2 1 1 1 2 2 2 2 2 1 3 3 3 3 3 1