powered by
Pretty round p-value
pretty_round_p_value( p_value_vector = NULL, round_digits_after_decimal = 3, include_p_equals = FALSE )
one number or a numeric vector
round to nth digit after decimal
if TRUE, output will be a string of mathematical expression including "p", e.g., "p < .01"
TRUE
# NOT RUN { 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) # }
Run the code above in your browser using DataLab