This function takes a numeric value and rounds it. It is most useful for R output that is more than three decimal places long.

round_pval(x)

Arguments

x

(numeric) A p-value to round

Examples

round_pval(0.03765)
#> [1] ".038"
round_pval(0.0000001)
#> [1] ".001"