Hello,

I have a string variable, to which I would like to assign numerical values. It has too many unique values to use encode, so I have used:
egen numerical_variable=group(string_variable), label

However, when I do this I get the error "too few quotes r(132)". Does anyone know how to get around this?
Thank you