Skip to contents

The values of the two years and the change are shown to 3 significant digits (6.02M, 1.42B, 0.0752), while sorting still uses the full numbers. The percent change has one decimal, in bold green for an increase and red for a decrease. The table is one long page with compact rows, like the Index table.

Usage

render_change_table(tab)

Arguments

tab

One of the data frames returned by indicator_change() (increased or decreased).

Value

A DT::datatable htmlwidget.

Examples

res <- indicator_change(mfi, country = "Greece", year1 = 2000, year2 = 2020)
render_change_table(res$increased)