Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
how to get length of numbers in column
halaalrobassy
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
Find more posts tagged with
AI Studio
Accepted answers
MartinLiebig
Hi,
maybe generate attributes with
length(str([attribute]))
?
Best,
Martin
rfuentealba
Hello
@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.
number_length.rmp
Edin_Klapic
Hi
@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,
Edin
generate attributes.PNG
All comments
MartinLiebig
Hi,
maybe generate attributes with
length(str([attribute]))
?
Best,
Martin
rfuentealba
Hello
@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.
number_length.rmp
halaalrobassy
thank you ,i implemented this process ,
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
Edin_Klapic
Hi
@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,
Edin
generate attributes.PNG
halaalrobassy
thank you,
this was helpful and i get want i want
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups