latex_character: Force Latex Character Vector in Kable

Description Usage Arguments Value Creation notes Examples

View source: R/Rmd_helpers.R

Description

latex_character() forces a row to output in kable as a character. It is helpful when the vector contains a latex special character like '_'.

Usage

1

Arguments

vec

character vector that you want to force to output as character in kable.

Value

Returns character vector with special latex formating.

Creation notes

First created on 2019-Nov-14 in Homework_4.Rmd while working on homework for FNR647.

Examples

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)

jacpete/jpfxns2 documentation built on May 10, 2020, 9:15 p.m.