Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Counting Items in Lists' topicStudent Support Forum > General > "Counting Items in Lists"

Next Comment >Help | Reply To Topic
Author Comment/Response
Pedro Zahran
06/26/03 3:13pm

I have a list of lists, {{1,2,3},{2,2,4}}, and would like to count the number of 2's, for example, in each list. The output should look like: {{1},{2}}. I haven't had any success in be able to map Count over each list. Thanks.

URL: ,

Subject (listing for 'Counting Items in Lists')
Author Date Posted
Counting Items in Lists Pedro Zahran 06/26/03 3:13pm
Re: Counting Items in Lists Bo 06/30/03 05:10am
Re: Counting Items in Lists John 07/02/03 7:46pm
Next Comment >Help | Reply To Topic