% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/formatting.R
\name{to_dollar}
\alias{to_dollar}
\title{Format Number as Dollar Amount}
\usage{
to_dollar(x, latex = FALSE)
}
\arguments{
\item{x}{Numeric vector to format}

\item{latex}{Logical indicating whether to escape dollar sign for LaTeX
(default: FALSE)}
}
\value{
Character vector of formatted dollar amounts
}
\description{
Converts numeric values to formatted dollar strings with appropriate
decimal places and thousand separators.
}
\examples{
# Format dollar amounts
to_dollar(c(1000, 2500.50, 10000))

# LaTeX-escaped format
to_dollar(c(1000, 2500.50), latex = TRUE)
}
