View Source Coda.Analytics.Commons (coda v0.3.0)
Common data frame analytics functions.
Summary
Functions
Compute count and frequency for a columns subset.
Rank data frame by counts or (year) frequency, limits to nth rows.
Types
@type dataframe() :: Coda.Behaviour.Analytics.dataframe()
@type facet_type() :: Coda.Behaviour.Analytics.facet_type()
Functions
@spec frequencies(dataframe(), facet_type(), keyword()) :: dataframe()
Compute count and frequency for a columns subset.
Options:
filter
- anExplorer.DataFrame
filter function that excludes data in analyticscounts
- includes only facets with this counts (integer)sort
- by:counts
or:freq
(frequencies over the years)
Rank data frame by counts or (year) frequency, limits to nth rows.