R/database.R
create_db_topics_interactions.Rd
Create various topics interactions datasets for the ennet_db
create_db_topics_interactions(
dailies,
id = c("daily", "weekly", "monthly", "yearly")
)
A tibble of topics data usually produced by using the
create_db_topics_dailies()
function
A character value for data identifier. Possible choices are daily, weekly, monthly, or yearly.
A tibble of specified topics dataset created from data in the ennet_db
themes <- ennet_themes$themes
x <- ennet_dailies[ennet_dailies$Theme == themes[3], ]
create_db_topics_interactions(dailies = x, id = "yearly")
#> Joining, by = c("Theme", "Extraction Year")
#> # A tibble: 1 × 7
#> Theme `Extraction Ye…` Replies Views `New Replies` `New Views` nPosts
#> <chr> <date> <dbl> <dbl> <dbl> <dbl> <int>
#> 1 COVID-19 and … 2020-01-01 131 67147 0 0 84