The insee package contains tools to easily download data and metadata from INSEE main database (BDM).
Using embedded SDMX queries, get the data of more than 150 000 INSEE series.
Have a look at the detailed SDMX web service page with the following link.
This package is a contribution to reproducible research and public data transparency.
library(tidyverse) library(insee) idbank_list = get_idbank_list() df_idbank_list_selected = idbank_list %>% filter(nomflow == "CNT-2014-PIB-EQB-RF") %>% # Gross domestic product balance filter(dim1 == "T") %>% #quarter add_insee_title() %>% #add titles filter(dim4 == "PIB") %>% #GDP filter(dim6 == "TAUX") %>% #rate filter(dim10 == "CVS-CJO") #SA-WDA, seasonally adjusted, working day adjusted idbank = df_idbank_list_selected %>% pull(idbank) data = get_insee_idbank(idbank) ggplot(data, aes(x = DATE, y = OBS_VALUE)) + geom_col() + ggtitle("French GDP growth rate, quarter-on-quarter, sa-wda") + labs(subtitle = sprintf("Last updated : %s", data$TIME_PERIOD))
Feel free to contact me with any question about this package using this e-mail address.