View source: R/get_unemployment.R
| get_unemployment | R Documentation |
Downloads monthly unemployment rate data from the Brazilian Central Bank's SGS (Sistema Gerenciador de Series Temporais). The series corresponds to the unemployment rate from IBGE's Continuous PNAD survey (PNAD Continua), replicated and made available by the Central Bank.
get_unemployment(
start_date = "2020-01-01",
end_date = NULL,
language = "eng",
labels = TRUE
)
start_date |
Start date for the data period. Accepts multiple formats:
|
end_date |
End date for the data period. Accepts the same formats as
|
language |
Language for column names in the returned data.frame:
|
labels |
Logical indicating whether to add variable labels using the
|
A data.frame with:
date (Date): Reference month
value (numeric): Unemployment rate (%)
Data Source: Brazilian Central Bank (SGS), series 24369. The data originates from IBGE's Continuous National Household Sample Survey (PNAD Continua) and is published with monthly frequency.
Although published monthly, the unemployment rate follows IBGE's moving-quarter methodology.
# Default: from 2020 to current date (aligned with other functions)
df <- get_unemployment()
# Specific period with year-only format
df2 <- get_unemployment("2018", "2023")
# Portuguese column names and labels
df3 <- get_unemployment(language = "pt")
# Without variable labels
df4 <- get_unemployment("2020-01-01", "2022-12-31", labels = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.