Summarise PTI variables in a reactable table
pti_summary_table.RdCreates a `reactable` widget that summarises either compiled PTI metadata by variable or hex-level variable coverage for a hex data table.
Usage
pti_summary_table(compiled_data, type = c("overview", "hex"))See also
Other pti-report:
pti_plot_boundaries(),
pti_plot_histogram()
Examples
if (requireNamespace("reactable", quietly = TRUE)) {
data(ukr_mtdt_full)
pti_summary_table(ukr_mtdt_full, type = "overview")
hex_data <- tibble::tibble(
hex_id = paste0("hex_", 1:4),
poverty = c(0.2, NA, 0.4, NA)
)
pti_summary_table(hex_data, type = "hex")
}