Extract characters to make another variable

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

teuteu
Posts: 1
Joined: Fri May 13, 2016 8:59 pm

Extract characters to make another variable

Postby teuteu » Fri May 13, 2016 9:11 pm

Hi everyone,

I need help !

I have one nominal variable (x1, composed by 6 numbers) that i would like to transform into another (x2) which will be the name of different companies. It is the first four figures which will indicate to me what is the company. For example, if x1 = 543400 I would like that x2 = "Ecyton" because the header " 5434 " corresponds to this company.

Have you ideas how to realize this manipulation?

Thank you in advance :)

Teuteu

Who is online

Users browsing this forum: No registered users and 1 guest

cron