Probability of direction (pd) formatting
Examples
format_pd(0.12)
#> [1] "pd = 12.00%"
format_pd(c(0.12, 1, 0.9999, 0.98, 0.995, 0.96), name = NULL)
#> [1] "12.00%" "100%" "99.99%" "98.00%" "99.50%" "96.00%"
format_pd(c(0.12, 1, 0.9999, 0.98, 0.995, 0.96), stars = TRUE)
#> [1] "pd = 12.00%" "pd = 100%***" "pd = 99.99%***" "pd = 98.00%*"
#> [5] "pd = 99.50%**" "pd = 96.00%"