stats.frequency

Build a frequency table for a categorical column, optionally cross-tabulated by a second column.

  • Kind: standard
  • Network: no

Inputs🔗

NameTypeDescription
datafile (CSV)Input table containing the column(s) to tabulate.
columnstringName of the categorical column to count.
bystringOptional second column to cross-tabulate against (produces a contingency table). If empty, a one-way frequency table is produced.

Outputs🔗

NameTypeDescription
resultjsonFrequency counts. One-way tables include counts and proportions; cross-tabs are nested by the first column then the second.

Example🔗

- id: 01890000-0000-0000-0000-000000000401
  name: stats.frequency
  inputs:
    - 01890000-0000-0000-0000-000000000000
  args:
    column: "ownership"
    by: "forest_type"