add_claims: Add data to disinfo object

Description Usage Arguments Functions Examples

View source: R/disinfo_functions.R

Description

Add the different data tables to the disinfo object by calling the EUvsDisinfo API.

Usage

 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)

Arguments

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.

Functions

Examples

 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)

corriebar/euvsdisinfoR documentation built on March 15, 2020, 4 p.m.