headlines: Make all headlines used in the experiment

Description Usage Arguments Examples

View source: R/headlines-make.R

Description

Make all headlines used in the experiment. Uses headlines_data() and headlines_make_from_data(). Returns a data frame with the headline, as well as associated id (linked to the data) and variables identifying the integrated treatment component.

Usage

1
headlines(news_type = "hard")

Arguments

news_type

What news type to get, either hard (default) or soft.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
 # Get and print the hard news headlines
 hard_news <- headlines_all("hard")
 print(hard_news$headline)

 # Get and print the soft news headlines
 soft_news <- headlines_all("soft")
 print(soft_news$headline[1])

## End(Not run)

mikaelpoul/selective documentation built on May 22, 2019, 10:51 p.m.