Nothing
#' Municipality yearly female population estimates totals
#'
#' This function provides a tibble containing female population estimates for Brazilian municipalities totals.
#'
#' @param source character. `datasus` for Brazilian Health Ministry estimates, or `ufrn` for UFRN-DEM-LEPP estimates.
#'
#' @returns A tibble.
#' @seealso [datasus_mun_female_pop], [ufrn_mun_female_pop].
#'
#' @importFrom rlang .data
#' @export
mun_female_pop_totals <- function(source = "datasus"){
# Assertions
checkmate::assert_choice(x = source, choices = c("datasus", "ufrn"))
# Estimates source
if(source == "datasus"){
mun_female_pop <- datasus_mun_female_pop()
} else if(source == "ufrn"){
mun_female_pop <- ufrn_mun_female_pop()
}
res <- mun_female_pop %>%
dplyr::filter(.data$age_group == "Total") %>%
dplyr::arrange(.data$code_muni, .data$year)
return(res)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.