pretty_round_p_value {ezr}R Documentation

Pretty round p-value

Description

Pretty round p-value

Usage

pretty_round_p_value(
  p_value_vector = NULL,
  round_digits_after_decimal = 3,
  include_p_equals = FALSE
)

Arguments

p_value_vector

one number or a numeric vector

round_digits_after_decimal

round to nth digit after decimal

include_p_equals

if TRUE, output will be a string of mathematical expression including "p", e.g., "p < .01"

Examples

pretty_round_p_value(p_value_vector = 0.049,
round_digits_after_decimal = 2, include_p_equals = FALSE)
pretty_round_p_value(c(0.0015, 0.0014), include_p_equals = TRUE)

[Package ezr version 0.1.5 Index]