Command Reference : Function Reference : Function Reference: C
  
 
@cvalcount
Count of matching values in each column.
Syntax: @cvalcount(x, y)
x: data object
y: value or string
Return: vector
The number of elements in each column of x that match y. Note that numeric matches require an exact match.
Examples
Let X be a matrix. Then
= @cvalcount(x, 2)
returns a vector containing the number of elements in each column of X that take the value 2.
Cross-references
See also @valcount.