Options

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

  • Options
    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
  • Options
    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.