https://github.com/cran/bayestestR
Revision 01482dc32c49cc56111762e704c854b5f287966a authored by Dominique Makowski on 20 April 2020, 05:10:28 UTC, committed by cran-robot on 20 April 2020, 05:10:28 UTC
1 parent 645c10f
Tip revision: 01482dc32c49cc56111762e704c854b5f287966a authored by Dominique Makowski on 20 April 2020, 05:10:28 UTC
version 0.6.0
version 0.6.0
Tip revision: 01482dc
print.p_map.R
#' @export
print.p_map <- function(x, digits = 3, ...) {
orig_x <- x
if ("data_plot" %in% class(x)) {
print(as.data.frame(x))
} else if ("data.frame" %in% class(x)) {
insight::print_color("# MAP-based p-value\n\n", "blue")
print_data_frame(x, digits = digits)
} else {
cat(sprintf("p (MAP) = %.*f", digits, x))
}
invisible(orig_x)
}
Computing file changes ...