• <GetStart>
  • CSPro User's Guide
    • The CSPro System
    • Data Dictionary Module
    • The CSPro Language
    • Data Entry Module
    • Batch Editing Applications
    • Tabulation Applications
    • Data Sources
    • CSPro Statements and Functions
      • Statement Format Symbols
      • Alphabetical List of Functions and Statements
      • List of Reserved Words
      • Deprecated Features
      • Declaration Statements
      • Symbol Functions
      • Item Functions
      • Array Object
      • Audio Object
      • Barcode and QR Codes
      • Case Object
      • Document Object
      • File Object
      • Freq Object
        • Freq Statement (Named)
        • Frequency Formatting Options
        • Freq.tally Function
        • Freq.clear Function
        • Freq.save Function
        • Freq.view Function
      • Geometry Object
      • HashMap Object
      • Image Object
      • List Object
      • Map Object
      • Path
      • Pff Object
      • SystemApp Object
      • ValueSet Object
      • Program Control Statements
      • Assignment Statements
      • Data Entry Statements and Functions
      • Batch Edit Statements
      • Numeric Functions
      • String Functions
      • Multiple Occurrence Functions
      • General Functions
      • Date and Time Functions
      • External File Functions
      • Synchronization Functions
    • Templated Reporting System
    • HTML and JavaScript Integration
    • Action Invoker
    • Appendix
  • <CSEntry>
  • <CSBatch>
  • <CSTab>
  • <DataViewer>
  • <TextView>
  • <TblView>
  • <CSFreq>
  • <CSDeploy>
  • <CSPack>
  • <CSDiff>
  • <CSConcat>
  • <Excel2CSPro>
  • <CSExport>
  • <CSIndex>
  • <CSReFmt>
  • <CSSort>
  • <ParadataConcat>
  • <ParadataViewer>
  • <CSCode>
  • <CSDocument>
  • <CSView>
  • <CSWeb>

Freq.tally Function

Format
i = freq_name.tally(ʃweightʅ);
Description
The Freq.tally function tallies the frequency values that are part of a Freq object. An optional numeric expression, weight, can be used to specify a weight; if not provided, a weight of 1 is used during the tallying.
If using Freq.tally in a data entry application, note that a value's visual value is used in the tally.
Return Value
The function returns the number of values that were tallied. If an invalid weight is provided, the function returns default.
Example
Freq hh_status_freq(HH_STATUS);

forcase LISTING_DICT where FIPS = 69 do
    hh_status_freq.
tally();
endfor;

hh_status_freq.
view()
               heading(
"Household Status - Northern Mariana Islands");
See also: Freq Object, Freq.clear Function