| get_unit_summary | R Documentation |
Generates a summary table for a single unit. This is mostly useful in unit reports.
get_unit_summary(coin, usel, Levels, dset = "Aggregated", nround = 2)
coin |
A coin |
usel |
A selected unit code |
Levels |
The aggregation levels to display results from. |
dset |
The data set within the coin to extract scores and ranks from |
nround |
Number of decimals to round scores to, default 2. Set to |
This returns the scores and ranks for each indicator/aggregate as specified in aglevs. It orders the table so that
the highest aggregation levels are first. This means that if the index level is included, it will be first.
This function replaces the now-defunct getUnitSummary() from COINr < v1.0.
A summary table as a data frame, containing scores and ranks for specified indicators/aggregates.
# build full example coin
coin <- build_example_coin(quietly = TRUE)
# summary of scores for IND at levels 4, 3 and 2
get_unit_summary(coin, usel = "IND", Levels = c(4,3,2), dset = "Aggregated")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.