diff options
Diffstat (limited to 'man/formatted_cep.Rd')
| -rw-r--r-- | man/formatted_cep.Rd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/man/formatted_cep.Rd b/man/formatted_cep.Rd new file mode 100644 index 0000000..7f77b4e --- /dev/null +++ b/man/formatted_cep.Rd @@ -0,0 +1,25 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/models.R +\name{formatted_cep} +\alias{formatted_cep} +\title{Add the mask to a CEP} +\usage{ +formatted_cep(x) +} +\arguments{ +\item{x}{A \link{cepis_address} or a character vector of CEPs.} +} +\value{ +A character vector of masked CEPs. A value that is not 8 digits is +returned unchanged, because this is a formatting helper and not a +validator — \code{\link[=normalize_cep]{normalize_cep()}} is the validator. +} +\description{ +\code{"01001000"} becomes \code{"01001-000"}. The API always answers unmasked; +formatting is presentation, and it lives here so it does not become a +repeated \code{paste0()} in every project that uses this package. +} +\examples{ +formatted_cep("01001000") + +} |