Options
Maximal size of the attribute entries
s_nektarijevic
RapidMiner Certified Analyst, Member Posts: 12 Contributor II
in Help
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
0
Best Answers
-
Optionskypexin Moderator, RapidMiner Certified Analyst, Member Posts: 291 UnicornHi 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.
6 -
OptionsMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,510 RM Data ScientistHi @s_nektarijevic ,to add to @kypexin comment: Instead of sort you could use an Aggreate operator to directly get max(len).BR,
Martin- Sr. Director Data Solutions, Altair RapidMiner -
Dortmund, Germany6
Answers