The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Converting text to numerical values with generate attributes

OliviusOlivius Member Posts: 2 Learner I
edited July 2020 in Help
Good morning
I am trying to generate a new column in the file using the generate attribute operator. This new column would take the text in the serviciointernet column and replace these text strings with numerical values. For example, a "no" would be replaced with a 0, DSL with a 5, and fibraoptica with a 10. 
I am quite clumsy when it comes to programming and am getting stuck.
Any help would be very welcome

Answers

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,533 RM Data Scientist
    Hi,
    did you try to use the Map operator? That one should make it easier.

    Cheers,
    Martin
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
  • OliviusOlivius Member Posts: 2 Learner I
    Thanks!
Sign In or Register to comment.