Nothing
#' Health region yearly male population estimates totals
#'
#' This function provides a tibble containing male population estimates for Brazilian health regions totals.
#'
#' @param type character. 'standard' or 'reg_saude_449'
#' @param source character. `datasus` for Brazilian Health Ministry estimates, or `ufrn` for UFRN-DEM-LEPP estimates.
#'
#' @returns A tibble.
#' @seealso [regsaude_male_pop].
#'
#' @importFrom rlang .data
#' @export
regsaude_male_pop_totals <- function(type = "standard", source = "datasus"){
# Assertions
checkmate::assert_choice(x = type, choices = c("standard", "reg_saude_449"))
checkmate::assert_choice(x = source, choices = c("datasus", "ufrn"))
res <- regsaude_male_pop(type = type, source = source) %>%
dplyr::filter(.data$age_group == "Total") %>%
dplyr::arrange(.data$codi_reg_saude, .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.