Package 'onsvtables'

Title: National Road Safety Observatory (ONSV) Styles for 'gt' Tables
Description: Wrapper functions for customizing HTML tables from the 'gt' package to the ONSV style.
Authors: João Pedro Melani Saraiva [aut, cre], Pedro Augusto Borges Santos [aut] , ONSV - National Road Safety Observatory [cph, fnd]
Maintainer: João Pedro Melani Saraiva <[email protected]>
License: MIT + file LICENSE
Version: 0.1.0
Built: 2024-11-12 04:41:30 UTC
Source: https://github.com/onsv/onsvtables

Help Index


Add styles to a {gt} table.

Description

tab_onsv() uses ⁠gt::tab_*()⁠ functions to customize a gt_tbl object.

Usage

tab_onsv(data)

Arguments

data

A gt_tbl object.

Value

A gt_tbl customized with tab_style() and tab_options().

Examples

df <- data.frame(
  var1 = c("lorem", "ipsum", "dolor"),
  var2 = c(1, 2, 3)
)

tbl_onsv <-
  df |>
  gt::gt() |>
  tab_onsv()