Difference between revisions of "Count"

From Catglobe Wiki
Jump to: navigation, search
Line 1: Line 1:
[[Category:Functions_Used_in_where_Expressions]]
+
{{HelpFiles}}  
{{HelpFiles}}
+
 
 +
==== count ====
 +
 
 +
Counts the number of rows (typically meaning respondents) in the data table that fulfill the stated conditions.
  
====count====
+
'''Syntax'''
  
Counts the number of rows (typically meaning respondents) in the data table that fulfill the stated conditions.
+
count()  
  
'''Syntax'''
+
'''Arguments'''  
  
count()
+
none
  
'''Arguments'''
+
'''Return type'''  
  
none
+
number
  
'''Return type'''
+
'''Examples'''  
  
number
+
''//count the number of data rows in the data table''
  
'''Examples'''
+
''number n = count() where (true);''  
  
''//count the number of data rows in the data table''
+
''print(n);''
  
''number n = count() where (true);''
+
'''Availability'''  
  
'''Availability'''
+
Version 4.8 __NOTOC__ <!-- imported from file: 1638.htm-->
  
Version 4.8
+
[[Category:Functions_Used_in_where_Expressions]]
__NOTOC__
 
<!-- imported from file: 1638.htm-->
 

Revision as of 11:35, 20 December 2011



count

Counts the number of rows (typically meaning respondents) in the data table that fulfill the stated conditions.

Syntax

count()

Arguments

none

Return type

number

Examples

//count the number of data rows in the data table

number n = count() where (true);

print(n);

Availability

Version 4.8