R/utils.R
all2int.Rd
convert all discretized vectors to integer
all2int(x)
A discretized vector.
An integer vector.
all2int(factor(letters[1:3],levels = c('b','a','c'))) #> [1] 2 1 3 all2int(letters[1:3]) #> [1] 1 2 3