Description Usage Arguments Value Creation notes Examples
latex_niceSigFig()
formats character vector in data to
output as pretty sig fig
1 | latex_niceSigFig(vec, digits = 3, addMathMode = TRUE)
|
vec |
vector that you want to force to output as sig fig in kable. |
digits |
integer that defines how many sig figs you wnat to keep. |
addMathMode |
logical TRUE if you want to add the |
Returns character vector with special latex formating.
First created on 2019-Nov-14 in Homework_4.Rmd while working on homework for FNR647.
1 2 3 4 | modelCoefTable(Q1_model, overdispersed = FALSE) %>%
mutate(Coefficient = latex_character(Coefficient),
`Pr(>|z|)`= latex_niceSigFig(`Pr(>|z|)`,digits = 3)) %>%
kable(escape = F, booktabs = T, digits = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.