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 |
{gt}
table.tab_onsv()
uses gt::tab_*()
functions to customize a gt_tbl
object.
tab_onsv(data)
tab_onsv(data)
data |
A |
A gt_tbl
customized with tab_style()
and tab_options()
.
df <- data.frame( var1 = c("lorem", "ipsum", "dolor"), var2 = c(1, 2, 3) ) tbl_onsv <- df |> gt::gt() |> tab_onsv()
df <- data.frame( var1 = c("lorem", "ipsum", "dolor"), var2 = c(1, 2, 3) ) tbl_onsv <- df |> gt::gt() |> tab_onsv()