create attribute
m_hossein_m
New Altair Community Member
hi friends
how can i create a multi class attribute(for ex new) from values of an atribute(a)
for ex:
if a=1 new=perfect
if a=2 new=good
if a=3 new=avg
.
.
......
thanks
how can i create a multi class attribute(for ex new) from values of an atribute(a)
for ex:
if a=1 new=perfect
if a=2 new=good
if a=3 new=avg
.
.
......
thanks
Tagged:
0
Answers
-
probably the easiest, assuming there is just a limited number of possibilities, is to copy the attribute and then use the Map operator to map 1 to perfect, 2 to good, etc... You'll have to make the new copied attribute nominal of course. If it's a lot of possibilities (more than 20?), then I would pull in a lookup data set and loop through.
Scott
0