#' Report pvals in RMarkdown
#' @export
report_p <- function(x){
return(ifelse(x<0.001,
"< .001",
paste0("= ",round(x,3),1)
# APAstyler is now deprecated
#paste0("= ",APAstyler::snip(round(x,3),1))
#scales::pvalue(x,add_p = TRUE),1)))
#paste0("= ",as.character(round(x,3)))
))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.