Maximal size of the attribute entries

s_nektarijevic
New Altair Community Member
Dear RapidMiners,
Happy new year to everyone!
The new year already brings new questions! Here is one from me:
Is it possible to get the maximal length of the strings contained in an an attribute? For example, if in an attribute I am storing titles of web pages, is there an elegant way to retrieve the length of the longest title?
Many thanks in advance!
Cheers,
Snezana
Tagged:
0
Best Answers
-
Hi Snezana,
One way for doing this might be using 'Generate attributes' operator and length() function on a nominal attribute containing web page name, then using Sort operator to sort by that new attribute containing the length values.
1 -
Hi @s_nektarijevic ,to add to @kypexin comment: Instead of sort you could use an Aggreate operator to directly get max(len).BR,
Martin1
Answers
-
Hi Snezana,
One way for doing this might be using 'Generate attributes' operator and length() function on a nominal attribute containing web page name, then using Sort operator to sort by that new attribute containing the length values.
1 -
Hi @s_nektarijevic ,to add to @kypexin comment: Instead of sort you could use an Aggreate operator to directly get max(len).BR,
Martin1 -