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
how to get length of numbers in column
halaalrobassy
Member Posts: 16 Contributor II
in Help
i have column that has student number and i want first to get the length of column for example : student with 11 numbers digits and others with 12 number digits . then i want to extract students with 11 length digits from this dataset. second split this numbers into three divisions..
can you tell me which processes can do this
thank you
can you tell me which processes can do this
thank you
0
Best Answers
-
MartinLiebig Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,533 RM Data ScientistHi,
maybe generate attributes with
length(str([attribute]))
?
Best,
Martin- Sr. Director Data Solutions, Altair RapidMiner -
Dortmund, Germany8 -
rfuentealba RapidMiner Certified Analyst, Member, University Professor Posts: 568 UnicornHello @halaalrobassy,Please find attached the process. It's pretty simple:You need to make sure your numbers are polynominal. Then with the Generate Attributes operator you can create an attribute named Length of ID, which is almost the same thing that Herr @mschmitz suggested (but I prefer to make it easier).All the best,Rod.6
-
Edin_Klapic Employee-RapidMiner, RMResearcher, Member Posts: 299 RM Data ScientistHi @halaalrobassy,The shortest way is to use Generate Attributes with the function cut().The syntax is explained within the Operator (see attached screenshot).Of course you can also achieve this in other ways as well (e.g. copy the Attribute and use Replace to only keep the relevant numbers of each "divisions" using a regular expression.Happy Mining,Edin5
Answers
know i want to divid this ID into three divisions, the first two numbers one division , the second four number is another division. can you tell me how
this was helpful and i get want i want