Learn R Programming

ennet (version 0.2.2)

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

Description

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

Usage

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

Examples

Run this code
# NOT RUN {
library(magrittr)
ennet_topics %>% count_authors()

# }

Run the code above in your browser using DataLab