count_topics: Count the number of topics by theme and by date

View source: R/analytics.R

count_topicsR Documentation

Count the number of topics by theme and by date

Description

Count the number of topics by theme and by date

Usage

count_topics(topics, by_date = c("month_year", "year", "all"), .sort = TRUE)

Arguments

topics

A tibble of topics by theme from en-net forum produced through a call to get_themes_topics().

by_date

Should topics be grouped by month of the year or just by year or overall? Default is to group by month of the year.

.sort

Logical. Should output be sorted by count frequencies? Default is TRUE.

Value

A tibble of topic counts by theme and by specified date format

Author(s)

Ernest Guevarra

Examples

library(magrittr)
ennet_topics %>% count_topics(by_date = "month_year")


katilingban/ennet documentation built on Nov. 3, 2022, 4:39 p.m.