SOLVED
"Categorical field" into a “collection of flag fields”
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
molnarm
5 - Atom
05-20-2015
06:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
How to derive a categorical field to a collection of flag (true/false) fields in Alteryx?
E.g.: field_male_female => flag_male and flag_female
I understand: I can do it with R node with script but is there any simpler way?
E.g.: field_male_female => flag_male and flag_female
I understand: I can do it with R node with script but is there any simpler way?
Solved! Go to Solution.
Labels:
- Labels:
- Data Investigation
2 REPLIES 2
chris_fort
7 - Meteor
05-20-2015
11:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
There are several ways to do this,
One option is to use the transpose tool, placing the "field_male_female" as the header field and counting the number of respondents. Following that, you can use a multi-field formula to replace null values with zeros.
Before:

Process:


Quick answer, so hope it makes sense!
Chris
One option is to use the transpose tool, placing the "field_male_female" as the header field and counting the number of respondents. Following that, you can use a multi-field formula to replace null values with zeros.
Before:

Process:


Quick answer, so hope it makes sense!
Chris
05-20-2015
12:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Do you mean Crosstab Tool, don't you?
It works fine, thanks a lot.
Addtional question:
What is Alteryx-recommandation for handling/managing categorical fields with a lot of categories (in string type field) for regression problems (with numeric or binary target variable)?
Conversion these string/categorical fields to numeric fields via Formula node?
Ot binning with any kind of parameterizing of Tile node?
It works fine, thanks a lot.
Addtional question:
What is Alteryx-recommandation for handling/managing categorical fields with a lot of categories (in string type field) for regression problems (with numeric or binary target variable)?
Conversion these string/categorical fields to numeric fields via Formula node?
Ot binning with any kind of parameterizing of Tile node?
