Re: [Tutor] question on array Operation

2014-10-29 Thread Steven D'Aprano
On Wed, Oct 29, 2014 at 05:08:28PM +0100, jarod...@libero.it wrote: > Dear All, > > I have a long matrix where I have the samples (1to n) and then I have (1to j > )elements. > I would like to count how many times each j element are present on each > samples. Jarod, looking at your email addres

Re: [Tutor] question on array Operation

2014-10-29 Thread Alan Gauld
On 29/10/14 16:08, jarod...@libero.it wrote: I have a long matrix where I have the samples (1to n) and then I have (1to j )elements. I would like to count how many times each j element are present on each samples. That probably makes sense to you but it doesn't to me. Lets assuyme you have n=

Re: [Tutor] question on array Operation

2014-10-29 Thread Peter Otten
jarod...@libero.it wrote: > Dear All, > > I have a long matrix where I have the samples (1to n) and then I have (1to > j )elements. > I would like to count how many times each j element are present on each > samples. > > So the question is which is the best algoritm for obtain the results. The

[Tutor] question on array Operation

2014-10-29 Thread jarod...@libero.it
Dear All, I have a long matrix where I have the samples (1to n) and then I have (1to j )elements. I would like to count how many times each j element are present on each samples. So the question is which is the best algoritm for obtain the results. The result I want is a table like that. A