Just a cautionary note: encode will work for categorical variables. In case you have numbers stored as strings, e.g., a count of the number of people in a household, see
instead.
Code:
help destring
Comment