iplotTable: Results table

Description Usage Arguments Details Value See Also Examples

View source: R/coin_resultsdash.R

Description

Generates an interactive table of data. For use in e.g. Shiny or HTML documents.

Usage

1
2
3
4
5
6
7
8
iplotTable(
  COIN,
  dset = "Raw",
  isel = NULL,
  aglev = NULL,
  nround = 1,
  extra_cols = FALSE
)

Arguments

COIN

The COIN object, or a data frame of indicator data.

dset

The data set to use in the table

isel

The selected indicator codes (default all in dset)

aglev

The aggregation level to select data from

nround

The number of decimal places to round scores to (default 1).

extra_cols

If FALSE (default), excludes group columns and similar. If TRUE, includes them.

Details

This function is a wrapper for the reactable package and offers a fast way to make interactive tables. It also applies conditional formatting (colouring by cell value), and sorts by the first column by default. Like other COINr functions, it can target subsets of indicators.

Value

An interactive table generated by reactable.

See Also

Examples

1
2
3
4
# assemble ASEM COIN
ASEM <- assemble(IndData = ASEMIndData, IndMeta = ASEMIndMeta, AggMeta = ASEMAggMeta)
# table of indicators in "Poltical" pillar
iplotTable(ASEM, dset = "Raw", isel = "Political", aglev = 1)

COINr documentation built on Nov. 30, 2021, 9:06 a.m.