MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Count Function

 Length[ Select[x[[All, 14]], # > -9 & ]

Select uses criteria while Count uses pattern.

-----Original Message-----
From: Gregory Lypny [mailto:gregory.lypny at] 
To: mathgroup at
Subject: [mg65515] [mg65501] Count Function

The syntax will be the death of me.

Count[X[[All,14]], -9.] will tally how many elements in column 14 of
matrix X are equal to -9, but I can't for the life of me figure out how
to get how many are greater than -9.  Any hint would be most


  • Prev by Date: Permutations
  • Next by Date: Re: Count Function
  • Previous by thread: Re: Count Function
  • Next by thread: Re: Count Function