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

Create new attribute

denhojerdenhojer Member Posts: 10 Contributor II
edited November 2018 in Help
In rapidminer i have a data set with an attribute called address which contain property address, what i need to do is create a new attribute which will only have the last 3 words contain in each property address. ie 231 new road County Dublin Ireland what i want to have is County Dublin Ireland in the new attribute. Could anybody help me with this process, I have tried to do it with the generate attribute process useing the function expression options but no success. Thanks for your time

Answers

  • MariusHelfMariusHelf RapidMiner Certified Expert, Member Posts: 1,869 Unicorn
    You can use the Replace operator and replace .* (\w+ \w+ \w+) by $1.
    For any kind of string replacement I suggest to get accustomed with regular expressions.

    Best regards,
    Marius
  • MariusHelfMariusHelf RapidMiner Certified Expert, Member Posts: 1,869 Unicorn
    Btw, there is no use of posting the question both here and on StackOverflow - that is considered cross-posting and usually considered to be against the netiquette :)
Sign In or Register to comment.