Create new attribute
denhojer
New Altair Community Member
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
Tagged:
1
Answers
-
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,
Marius0 -
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 netiquette0