onehot_vec {eHDPrep} | R Documentation |
Uses one-hot encoding to convert nominal vectors to a tibble containing variables for each of the unique values in input vector.
onehot_vec(x, prefix)
x |
non-numeric vector |
prefix |
prefix to append to output variable names |
tibble