Changing variable type for multiple variables

Moderators: statman, Analyst Techy, andris, Fierce, GerineL, Smash

jpwiega
Posts: 1
Joined: Sat Feb 08, 2014 7:31 pm

Changing variable type for multiple variables

Postby jpwiega » Sat Feb 08, 2014 7:38 pm

How can I change the variable type for a large number of variables? I'm specifically going from string to numeric.

Thanks
GerineL
Moderator
Posts: 1477
Joined: Tue Jun 10, 2008 4:50 pm

Re: Changing variable type for multiple variables

Postby GerineL » Mon Feb 10, 2014 11:16 am

maybe use do repeat with

compute scalevar = number(stringvar,f2).
execute.

Who is online

Users browsing this forum: No registered users and 1 guest

cron