Occurrences Node

john's Avatar

john

10 Mar, 2026 03:15 AM

The occurrences node counts the number of occurrences of each distinct item in a list. It returns a table containing, for each distinct item, its count and percentage.

It is possible to do this calculation by converting the list to a table and using one of my data nodes, like sum_cols using the count method, but this is tedious and confusing. I just want to plug in my list and get immediate gratification.

This node is dirt simple. It takes a list as input and nothing else.

The demo uses the characters in the word "Occurrences" as a list. The table shows that the c occurs 3 times, e and r both occur twice, and the other characters only occur once. I use my color_brewer node to assign a color for each character based on how often it occurs.

I am trying not to make as many new nodes, but this one was just to useful to hide. Enjoy!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • occurrences_screenshot.png 837 KB
  • Occurrences_Node.ndbx.zip 66.1 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

19 Apr, 2026 11:02 AM
06 Apr, 2026 08:40 PM
12 Mar, 2026 01:15 AM
10 Mar, 2026 03:15 AM
22 Jan, 2026 08:50 AM

 

22 Jan, 2026 07:17 AM
19 Dec, 2025 07:35 AM
26 Nov, 2025 06:16 AM
24 Nov, 2025 03:36 PM
16 Nov, 2025 11:08 PM
25 Oct, 2025 02:52 AM