Recode Using Array

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

Posts: 3
Joined: Mon Mar 06, 2017 1:23 pm

Recode Using Array

Postby rdone » Mon Mar 06, 2017 6:16 pm

I need to recode a variable based on a list of about 6,300 reference codes. The logic might look like:
recode VAR2 as 1 if VAR1 = (any value on list of reference codes)
Is there a way to do this using an array or some other quicker way than hard coding each of the 6,300 reference codes?
Thanks in advance,

Who is online

Users browsing this forum: No registered users and 2 guests