Find more posts tagged with
Sort by:
1 - 1 of
11
Hello @pb42
You can use generate attributes operator and write a simple if statement. I added a sample .rmp file in this with generate attribute, I used the Titanic dataset where I generated a new attribute named "Class" that will have value "Y" if a passenger belongs to either First or second class and "N" for other classes (Passenger Class attribute).
if(([Passenger Class] == ("First") || [Passenger Class] == ("Second")), "Y", "N")
You can do it similarly for your case. To open the .rmp file in your studio, you can download from here and in studio go to FILE --> Import Process and navigate to the .rmp file downloaded.
Please let us know if this helps you. If you need more, please inform us.
You can use generate attributes operator and write a simple if statement. I added a sample .rmp file in this with generate attribute, I used the Titanic dataset where I generated a new attribute named "Class" that will have value "Y" if a passenger belongs to either First or second class and "N" for other classes (Passenger Class attribute).
if(([Passenger Class] == ("First") || [Passenger Class] == ("Second")), "Y", "N")
You can do it similarly for your case. To open the .rmp file in your studio, you can download from here and in studio go to FILE --> Import Process and navigate to the .rmp file downloaded.
Please let us know if this helps you. If you need more, please inform us.
You can use generate attributes operator and write a simple if statement. I added a sample .rmp file in this with generate attribute, I used the Titanic dataset where I generated a new attribute named "Class" that will have value "Y" if a passenger belongs to either First or second class and "N" for other classes (Passenger Class attribute).
if(([Passenger Class] == ("First") || [Passenger Class] == ("Second")), "Y", "N")
You can do it similarly for your case. To open the .rmp file in your studio, you can download from here and in studio go to FILE --> Import Process and navigate to the .rmp file downloaded.
Please let us know if this helps you. If you need more, please inform us.