When trying to encode string variables, it is easier to start from a list of its current values. The option should pre-fill: - variable name - value - number of observations with this value for this variable