Hi! I have a dataset with hundreds (on the order of 400-500) of indicator variables (values 1,2, or 3) that I imported from Excel (.xlsx) and they have imported as character values. I need them to be numeric. If relevant, the data were transposed after importing (initial data look like mixed data type - see below for an example). They are not all clustered together, so I cannot use something like array cha(*) var1 -- var450 ... Is there any way to convert hundreds of "truly numeric" variables that are masquerading as character variables, and are scattered among legitimate character variables, in any way that avoids me having to list all of them or convert them one-by-one? Original data imported: City1 City2 City3 City4 City5 Var1 words words words words words Var2 1 2 1 2 2 Var3 2 2 1 1 1 Var4 words words words words words Var5 words words words words words After transposing: Var1 Var2 Var3 Var4 Var5 City1 words 1 2 words words City2 words 2 2 words words City3 words 1 1 words words City4 words 2 1 words words City5 words 2 1 words words I'd love some suggestions on how to fix this! I know how to do this easily in R, perl, bash, and other programming languages, but at the moment I am constrained to using SAS.
... View more