R/analytics.R
count_topics_author.Rd
Count number of questions/topics posted on en-net by author
count_topics_author(topics = get_themes_topics(), .sort = TRUE)
count_topics_author_time(
topics = get_themes_topics(),
by_time = c("day", "week", "month", "year"),
.sort = TRUE
)
A tibble of topics by theme, by author, and by posting date
from en-net forum produced through a call to get_themes_topics()
Logical. Should output be sorted by count frequencies? Default is TRUE
Should topics be counted by day, by week, by month or by year? Default is to count by day.
A tibble of topic counts by specified grouping
## Get counts of topics by author
count_topics_author(topics = ennet_topics)
#> # A tibble: 1,192 × 2
#> Author n
#> <chr> <int>
#> 1 Tamsin Walters 183
#> 2 Marie Lecuyer 61
#> 3 Michael ALVES 58
#> 4 Anonymous 1494 49
#> 5 Marie McGrath 49
#> 6 Mark Myatt 43
#> 7 NA 41
#> 8 Anonymous 81 39
#> 9 Mark Hawkes 35
#> 10 Mija Ververs 33
#> # … with 1,182 more rows
## Get counts of authors by author and by time
count_topics_author_time(topics = ennet_topics)
#> # A tibble: 2,971 × 3
#> Author day n
#> <chr> <date> <int>
#> 1 Anonymous 1494 2015-06-02 11
#> 2 Mark Hawkes 2019-05-13 11
#> 3 Andi Kendle 2017-09-25 6
#> 4 GTAM Wasting TWG 2020-08-07 5
#> 5 Isabelle Modigell 2019-06-06 5
#> 6 Marie McGrath 2016-09-30 5
#> 7 Michael ALVES 2014-09-11 5
#> 8 Michael ALVES 2015-09-02 5
#> 9 Thuy Nguyen 2016-11-11 5
#> 10 Alan Mason 2016-09-15 4
#> # … with 2,961 more rows