Data management: How to convert categorical string variables to labeled numeric variables