Skip to contents

For a input clus = c(1,1,1,2,2,3,3,3,3), returns clus = c(2,2,2,3,3,1,1,1,1).

Usage

reassign_integers_by_frequency(clus)

Arguments

clus

vector of integers.

Value

frequency-based reassigned instance of clus

Examples

if (FALSE) { # \dontrun{
clus <- c(1,1,1,2,2,3,3,3,3)
clus_new <- reassign_integers_by_frequency(clus)
print(clus)
print(clus_new)
} # }