Find more posts tagged with
Sort by:
1 - 7 of
71

Hi,
i would recommend to use Generate Attributes with:
if(Age<20,"Young",str(Age))
or similar.
Best,
Martin
Hi,
don't use the Map operator for this, it is simply not meant for it. Map is used for changing nominal values in existing nominal attributes. Age is not a nominal attribute, so Map is not appropriate for it.
Martin's Generate Attributes solution is what you need if you want to define age ranges.
Or you could use Discretize by User Specification:

Regards,
Balázs
don't use the Map operator for this, it is simply not meant for it. Map is used for changing nominal values in existing nominal attributes. Age is not a nominal attribute, so Map is not appropriate for it.
Martin's Generate Attributes solution is what you need if you want to define age ranges.
Or you could use Discretize by User Specification:

Regards,
Balázs
Hi,
this operator works by defining the upper boundary for the classes.
Leave the default "first: -Infinity" and "last: Infinity" as they are and then add your classes.
The example is set up like this:
0 - 20: young
> 20 - 40: middle
> 40 - 100: old
You can define your own boundaries. Read the help and look at the example process if necessary.
Regards,
Balázs
this operator works by defining the upper boundary for the classes.
Leave the default "first: -Infinity" and "last: Infinity" as they are and then add your classes.
The example is set up like this:
0 - 20: young
> 20 - 40: middle
> 40 - 100: old
You can define your own boundaries. Read the help and look at the example process if necessary.
Regards,
Balázs