whoami 26 Posted April 17, 2014 Report Share Posted April 17, 2014 Hello everyone..Im currently extracting IDs into a big list and allowing repeated IDs to count on the %list.My question is:Is it possible to count how many repeated items on a specific ID I have? And list them along with its ID?It could be on a &table.Any ideas? Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted April 17, 2014 Report Share Posted April 17, 2014 You can use this maybe http://www.ubotstudio.com/forum/index.php?/topic/15705-word-frequency-count/ or SQLite https://www.google.com/search?q=sqlite+count+duplicates+in+column&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a&channel=sb Quote Link to post Share on other sites
the_way 52 Posted April 17, 2014 Report Share Posted April 17, 2014 thats a great answer, i had a function that was a bit longer than the ones posted, but the examples there are great, cheers Quote Link to post Share on other sites
UBotDev 276 Posted April 18, 2014 Report Share Posted April 18, 2014 If "items" are unique the simplest way to do it in UBot would be to use "find regular expression" command on (&table,%list,variable) which would add all matches to a list, then you simply count that list to get a number. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.