Description Usage Arguments Functions Examples
View source: R/disinfo_functions.R
Add the different data tables to the disinfo object by calling the EUvsDisinfo API.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | add_claims(disinfo, pages = 1, published_since = NULL)
add_reviews(
disinfo,
pages = 1,
clean_html = TRUE,
published_since = NULL,
reviewed_since = NULL
)
add_authors(disinfo, pages = 1)
add_creative_works(disinfo, pages = 1)
add_issues(disinfo, pages = 1)
add_keywords(disinfo, pages = 1)
add_countries(disinfo, pages = 1)
add_languages(disinfo, pages = 1)
add_news_articles(disinfo, pages = 1)
add_media_objects(disinfo, pages = 1)
add_all(disinfo, pages = 1, reviewed_since = NULL, published_since = NULL)
|
disinfo |
A disinfo object. |
pages |
Either the number of pages to download or "all". Defaults to 1. |
published_since |
Date string. Only retrieve claims or claim reviews where the claims were published after this date. It is currently only possible to restrict the claims and claim reviews by the publishing date. |
clean_html |
If TRUE, then add another column 'text' which is a plain text version of 'html_text'. Defaults to TRUE. |
reviewed_since |
Date string. Only retrieve claim reviews that were reviewed after this date. It is currently only possible to restrict the claim reviews by the reviewing date. |
add_reviews
: Download claim reviews data and add to disinfo object.
add_authors
: Download authors data and add to disinfo object.
add_creative_works
: Download creative works data and add to disinfo object.
add_issues
: Download issues data and add to disinfo object.
add_keywords
: Download keywords data and add to disinfo object.
add_countries
: Download countries data and add to disinfo object.
add_languages
: Download languages data and add to disinfo object.
add_news_articles
: Download news articles data and add to disinfo object. Will be
written to 'creative_works' and overwrites any previous creative works data.
If you want to have both news articles and media objects, use 'add_creative_works()'.
add_media_objects
: Download media objects data and add to disinfo object. Will be
written to 'creative_works' and overwrites any previous creative works data.
If you want to have both news articles and media objects, use 'add_creative_works()'.
add_all
: Downloads all 8 data tables from the API and adds them to the disinfo object.
1 2 3 4 5 6 7 8 9 10 11 12 13 | d <- disinfo()
## Not run:
d %>%
add_claims()
d %>%
add_claims(published_since = today() - months(3) ) %>%
add_reviews(published_since = today() - months(3) )
d %>%
add_all()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.