The roxygen comments use markdown (**bold**, `code`, [cog_x()] links, bullet lists) but DESCRIPTION had no `Roxygen: list(markdown = TRUE)`, so the generated .Rd files carried that syntax literally. It also meant a bare `%` started an Rd comment and silently cut the rest of its line from seven places in the rendered pages, including "7% of the no-filter floor", "-32.7% to +251.0% across 24 years" and the `filter(role %in% ...)` line of cog_peer_compare()'s example. Adds the setting and regenerates man/ with roxygen2 7.3.3 (matching RoxygenNote). The only source change is escaping one literal "[min year, max year]" in an @noRd block in R/balance_caveats.R, which markdown mode otherwise reads as a link. No wording or code changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qbe6u2h83wgZdTgJgE4Xh5
36 lines
1.2 KiB
R
36 lines
1.2 KiB
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/basket.R
|
|
\name{cog_basket_resolution}
|
|
\alias{cog_basket_resolution}
|
|
\title{Inspect basket-mode resolution sidecar}
|
|
\usage{
|
|
cog_basket_resolution(x, expand_candidates = FALSE)
|
|
}
|
|
\arguments{
|
|
\item{x}{A tibble returned by basket-mode \code{\link[=cog_gov_search]{cog_gov_search()}}.}
|
|
|
|
\item{expand_candidates}{Logical. If \code{TRUE}, keeps the \code{candidates}
|
|
list-column (full-schema match candidates per input row). Default
|
|
\code{FALSE}.}
|
|
}
|
|
\value{
|
|
A tibble with the resolution audit trail.
|
|
}
|
|
\description{
|
|
Returns the resolution tibble attached to a basket-mode result of
|
|
\code{\link[=cog_gov_search]{cog_gov_search()}}. One row per input entry; \code{status} is one of
|
|
\code{"resolved"}, \code{"largest_pop"}, \code{"ambiguous"}, \code{"no_match"}. By default
|
|
the \code{candidates} list-column is dropped for readable printing; pass
|
|
\code{expand_candidates = TRUE} to keep it.
|
|
}
|
|
\examples{
|
|
\dontrun{
|
|
basket <- cog_gov_search(
|
|
name = c("Broward", "San Diego", "Notarealplace"),
|
|
state = c("FL", "CA", "NY")
|
|
)
|
|
cog_basket_resolution(basket)
|
|
cog_basket_resolution(basket, expand_candidates = TRUE)
|
|
}
|
|
}
|