Skip to content

Commit

Permalink
added more lists
Browse files Browse the repository at this point in the history
  • Loading branch information
schochastics committed Oct 5, 2023
1 parent d448f74 commit 4256afe
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 1 deletion.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
^LICENSE\.md$
^\.github$
^data-raw$
15 changes: 15 additions & 0 deletions R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,18 @@
#' @references
#' Stier, S., Mangold, F., Scharkow, M., & Breuer, J. (2022). Post Post-Broadcast Democracy? News Exposure in the Age of Online Intermediaries. American Political Science Review, 116(2), 768-774.
"domain_list"


#' Domain list of us news
#' contains a list of and information on 5,397 US news domains. The domains overwhelmingly represent US-based organizations, but since the list was partly sourced from browsing data, it also includes some international domains visited by US study participants.
#' @references
#' Clemm von Hohenberg, B., Menchen-Trevino, E., Casas, A., Wojcieszak, M. (2021). A list of over 5000 US news domains and their social media accounts. https://doi.org/10.5281/zenodo.7651047
"us_news"


#' Domain list of online news
#'
#' @references
#' Sebastian Stier, Nora Kirkizh, Caterina Froio, Ralph Schroeder. Populist
#' attitudes and selective exposure to online news <https://osf.io/5pe27>
"us_news"
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ domainator wraps various APIs and provides lists to classify domains. This inclu
- Stier, S., Mangold, F., Scharkow, M., & Breuer, J. (2022). Post Post-Broadcast
Democracy? News Exposure in the Age of Online Intermediaries. American
Political Science Review, 116(2), 768-774.

- https://doi.org/10.5281/zenodo.7651047
- https://osf.io/5pe27/
-


`domainator` is part of a series of R packages to analyse webtracking data:
Expand Down
12 changes: 12 additions & 0 deletions data-raw/lists.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
us_news <- readr::read_csv("https://raw.githubusercontent.com/ercexpo/us-news-domains/main/us-news-domains-v2.0.0.csv")
us_news$type[is.na(us_news$type)] <- "news"

usethis::use_data(us_news, overwrite = TRUE)

osfr::osf_retrieve_file("4zat2") |>
osfr::osf_download(path = "./data-raw")

online_news <- readr::read_delim("./data-raw/Domain codes.csv", delim = ";")
unlink("./data-raw/Domain codes.csv")

usethis::use_data(online_news, overwrite = TRUE)
Binary file added data/online_news.rda
Binary file not shown.
Binary file added data/us_news.rda
Binary file not shown.
30 changes: 30 additions & 0 deletions man/us_news.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4256afe

Please sign in to comment.