powered by
to_value(x, startAt = 1, keep.labels = TRUE)
TRUE
set_val_labels
startAt
to_label
to_fac
data(efc) test <- to_label(efc$e42dep) table(test) table(to_value(test)) hist(to_value(test, 0)) # set lowest value of new variable # to "5". table(to_value(test, 5))
Run the code above in your browser using DataLab