This function downloads and organizes data from SINASC (Live Birth Information System), part of DATASUS, used in public health analyses.
Arguments
- time_period
A numeric value or vector indicating the year(s) of the data to be downloaded. For example,
2020or2015:2020.- states
A string or vector of strings indicating the Brazilian state(s) for which the data should be downloaded. Use
"all"(by default) to download data for the entire country. For specific states, use abbreviations like"SP","RJ", orc("SP", "RJ").- raw_data
Logical. If
TRUE, returns the raw data exactly as provided by DATASUS. IfFALSE(default), returns a cleaned and standardized version of the dataset.- language
A string indicating the desired language of variable names and labels. Accepts
"eng"(default) for English or"pt"for Portuguese.