% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/p_format_utils.R
\name{create_p_label}
\alias{create_p_label}
\title{Create P-Value Label with Proper Prefix}
\usage{
create_p_label(p.format, p.signif = NULL)
}
\arguments{
\item{p.format}{Character string of the formatted p-value (e.g., "0.05", "< 0.001").}

\item{p.signif}{Optional character string of significance symbol (e.g., "*", "**", "ns").
If provided, it will be appended after the p-value.}
}
\value{
A character string with the properly formatted p-value label. Missing
  values in \code{p.format} are preserved as \code{NA_character_}.
}
\description{
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.
}
\examples{
\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)
}

}
