count number of instances of a value?.. confused

mdlferguson's Avatar

mdlferguson

21 Mar, 2013 12:37 AM

sorry if this is a stupid question.. still getting use to nodebox3. I have a set of points (i'll call them hubs) - i joined them with lines. Then i thought while out walking, Each line is 2 points so there is a point for every connecting line at eachhub. I wanted to add an elipse at each hub and scale it based on the number of points at that hub. how would i go about counting the number of duplicate instances?
I got as far as adding a distinct node, so i have the number of unique points.

to make this a bit clearer, If i had a list : [1,1,2,3,3,3,4,7,9,4,3,2,6] or similar how could i get a list of unique values with a count
like [1-2, 2-2, 3-4, 4-2,7-1,9-1,6-1]

hope this isn't a annoying question. Congrats on the excellent piece of software
Mark

Reply to this discussion

Internal reply

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

Attaching KB article:

»

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

18 Nov, 2024 11:24 PM
18 Nov, 2024 09:01 PM
07 Nov, 2024 10:53 AM
02 Nov, 2024 11:22 AM
01 Nov, 2024 12:41 AM

 

01 Oct, 2024 07:59 AM
30 Sep, 2024 11:37 PM
30 Sep, 2024 11:11 AM
30 Sep, 2024 02:37 AM
28 Sep, 2024 10:33 AM
26 Sep, 2024 06:41 AM