- Notifications
You must be signed in to change notification settings - Fork1
License
Unknown, MIT licenses found
Licenses found
Unknown
LICENSEMIT
LICENSE.mdNotificationsYou must be signed in to change notification settings
rjake/headliner
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
The goal ofheadliner is to translate facts into insights. Given twovalues,headliner generates building blocks for creating dynamic text.These talking points can be combined using usingglue syntax to addinformative titles to plots, section headers or other text in a report.
You can install the dev version ofheadliner fromgithub with:
devtools::install_github("rjake/headliner")
Let’s look at some of the talking points for the difference between 5and 7:
library(headliner)compare_values(5,7)|># returns a list view_list()# show as a data frame
#> value#> x 5#> y 7#> delta 2#> delta_p 28.6#> article_delta a 2#> article_delta_p a 28.6#> raw_delta -2#> raw_delta_p -28.6#> article_raw_delta a -2#> article_raw_delta_p a -28.6#> sign -1#> orig_values 5 vs. 7#> trend decreaseWe can string the talking points together like this:
headline(x=5,y=7,headline="There was {article_delta_p}% {trend} ({orig_values})")
#> There was a 28.6% decrease (5 vs. 7)Seehere for alonger introduction.
About
Topics
Resources
License
Unknown, MIT licenses found
Licenses found
Unknown
LICENSEMIT
LICENSE.mdCode of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Contributors2
Uh oh!
There was an error while loading.Please reload this page.
