🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Creating dummy variables from text columns

User: "jaakko1"
New Altair Community Member
Updated by Jocelyn
Hello,

is there a more efficient way to create dummy variables using Rapidminer?

Eg, I have to following data
Col1;Col2
1;dog
2;cat
3;zebra
And I would like it to look like this
Col1;dog;cat;zebra
1;1;0;0
2;0;1;0
3;0;0;1
I know I can do this with Generate Attributes' if function, but as I need to create more than 100 dummies, I was wondering if there is a quicker method.

Thanks a lot!

Find more posts tagged with