Skip to contents

Phrases & Talking Points

Along with headline(), these functions allow you to expand and view talking points.

headline() headline_list()
Compose phrases that describe differences in the data
plural_phrasing()
List of values to use when change is plural (or singular)
trend_terms()
Phrases for direction of difference
add_headline_column()
Add column of headlines
compare_values()
Compare two values and get talking points
view_list()
Compact view of list values

Data Prep Helpers

There are some helper functions to prepare data frames for use with headline()

compare_conditions()
Compare two conditions within a data frame
add_date_columns()
Add columns with date calculations based on reference date

String Manipulation

Helper functions to edit strings used within headlines

add_article()
Append a/an to word

Data

headliner comes with two datasets that are used in examples and vignettes

demo_data()
Small data set referencing the current date
pixar_films
This data comes from pixarfilms package by Eric Leung (2022)