Title: | National Road Safety Observatory (ONSV) Styles for 'gt' Tables |
Version: | 0.1.0 |
Description: | Wrapper functions for customizing HTML tables from the 'gt' package to the ONSV style. |
License: | MIT + file LICENSE |
Encoding: | UTF-8 |
RoxygenNote: | 7.2.3 |
Imports: | gt |
Date: | 2024-05-23 |
URL: | https://github.com/ONSV/onsvtables, https://onsv.github.io/onsvtables/ |
BugReports: | https://github.com/ONSV/onsvtables/issues |
NeedsCompilation: | no |
Packaged: | 2024-05-23 19:51:28 UTC; João Saraiva |
Author: | João Pedro Melani Saraiva [aut, cre],
Pedro Augusto Borges Santos
|
Maintainer: | João Pedro Melani Saraiva <jpsaraiva2002@gmail.com> |
Repository: | CRAN |
Date/Publication: | 2024-05-25 10:00:02 UTC |
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 |
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()