Count the number of topics by author, by theme and by date

count_authors(
  topics,
  by_theme = TRUE,
  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_theme

Logical. If TRUE (default), count by theme.

by_date

Should topics be counted by month of the year or just by year or total? Default is to count by month of the year.

.sort

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

Value

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

Author

Ernest Guevarra

Examples

library(magrittr)
ennet_topics %>% count_authors()
#> Warning: This function is now deprecated and will be removed in the next version of the
#> package. Consider using the function ennet::count_topics_author() instead.
#> # A tibble: 2,752 × 5
#>    Theme                                Author            Month  Year     n
#>    <chr>                                <chr>             <fct> <dbl> <int>
#>  1 Announcements & Nutritionists needed Anonymous 1494    Jun    2015    13
#>  2 Announcements & Nutritionists needed Mark Hawkes       May    2019    13
#>  3 Announcements & Nutritionists needed Marie Lecuyer     May    2014    11
#>  4 Adolescent nutrition                 NATASHA LELIJVELD Mar    2021     9
#>  5 Announcements & Nutritionists needed Anonymous 1271    May    2012     9
#>  6 Announcements & Nutritionists needed Anonymous 1494    Aug    2015     9
#>  7 COVID-19 and nutrition programming   GTAM Wasting TWG  Jun    2020     9
#>  8 Announcements & Nutritionists needed Marie Lecuyer     Mar    2014     8
#>  9 Announcements & Nutritionists needed Marie Lecuyer     Jul    2014     8
#> 10 Announcements & Nutritionists needed Michael ALVES     Sep    2015     7
#> # … with 2,742 more rows