Creates a p-value label string with proper handling of inequality symbols. When the formatted p-value starts with "<" or ">", uses "p <value" or "p >value" format. Otherwise uses "p = value" format.
Value
A character string with the properly formatted p-value label. Missing
values in p.format are preserved as NA_character_.
Examples
if (FALSE) { # \dontrun{
create_p_label("0.05")
# Returns: "p = 0.05"
create_p_label("< 0.001")
# Returns: "p < 0.001"
create_p_label("0.01", "**")
# Returns: "p = 0.01 **"
create_p_label("< 0.001", "****")
# Returns: "p < 0.001 ****"
create_p_label(c("0.05", NA_character_))
# Returns: c("p = 0.05", NA)
} # }