You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/datasus.R
+44-5Lines changed: 44 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
#'
3
3
#' @description Loads DATASUS data on health establishments, mortality, access to health services and several health indicators.
4
4
#'
5
-
#' @param dataset A dataset name, can be one of ("datasus_sim_do", "datasus_sih", "datasus_cnes_lt"), or more. For more details, try \code{vignette("DATASUS")}.
5
+
#' @param dataset A dataset name, can be one of ("datasus_sim_do", "datasus_sih", "datasus_cnes_lt", "datasus_sinasc), or more. For more details, try \code{vignette("DATASUS")}.
6
6
#' @inheritParams load_baci
7
7
#' @param states A \code{string} specifying for which states to download the data. It is "all" by default, but can be a single state such as "AC" or any vector such as c("AC", "AM").
8
8
#' @param keep_all A \code{boolean} choosing whether to aggregate the data by municipality, in turn losing individual-level variables (\code{FALSE}) or to keep all the original variables. Only applies when raw_data is \code{TRUE}.
escmae=dplyr::recode(escmae, '1'="nenhuma", '2'="1 a 2 anos", '3'="4 a 7 anos", '4'="8 a 11 anos", '5'="12 e mais", '9'="ignorado"),
294
+
semagestac=dplyr::recode(semagestac, '1'="menos de 22 semanas", '2'="22 a 27 semanas", '3'="28 a 31 semanas", '4'="32 a 36 semanas", '5'="37 a 41 semanas", '6'="42 semanas e mais", '9'="ignorado"),
295
+
gravidez=dplyr::recode(gravidez, '1'="unica", '2'="dupla", '3'="tripla ou mais", '9'="ignorado"),
0 commit comments