#' Functions to get p-value from Chi-sq
#' @description Functions to get p-value from Chi-sq, used by createNiceTable()
printChiSqPVal <- function(fmla, data) {
tbl <- ftable(fmla, data)
Xsq <- chisq.test(tbl)
printPVal(Xsq$p.value)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.