Set to Flag

Hi,

I have a categorical variable which I'd like to transform to a set to flag (0,1);

product

a

b

c

d

------------------

product  a    b   c   d

a            1  0   0 0

b            0  1 0  0

c             0 0  1 0

d            0  0  0  1

I've tried the bitvector node and even the document vector, but I get these errors;

"Check node description for supported input formats!"

No column containing TermCells found !

I have 61 categories of porducts.

Thank you,

EF

You have to use the One2Many node.

Hi,

Thank you, that doesn't work with the variable I need to transform, it does work but with other variables ( they all string type). error for the one2many;

"ProductCategory has no possible values"

is this caused by having many categories?

 

Thank you!!!

Try adding the domain calculator node prior to one2many node 

Simon.

Thank you!!! it worked smiley

Very good suggestion. Thanks

Eliezer