Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

rjake/headliner

CRAN_Status_BadgeDownloadscodecovR-CMD-check

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.

Installation

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               decrease

We 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
LICENSE
MIT
LICENSE.md

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp