Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
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
-
kypexin 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 -
MartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,527 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