Last observation: M: 2018-01 (N = 24)
First observation: M: 1997-01 (N = 24)
Last data update: 13 aoû 2026, 14:50. Last compile: 18 aoû 2026, 00:59
Données - INSEE
Last observation: M: 2018-01 (N = 24)
First observation: M: 1997-01 (N = 24)
Last data update: 13 aoû 2026, 14:50. Last compile: 18 aoû 2026, 00:59
freq_dominant <- `ICA-2010-EMAGSA` |>
filter(!is.na(OBS_VALUE)) |>
count(FREQ, sort = TRUE) |>
slice(1) |>
pull(FREQ)
convert_fn <- switch(freq_dominant,
"A" = year_to_date, "Q" = quarter_to_date, "T" = quarter_to_date,
"M" = month_to_date, "S" = semester_to_date,
year_to_date)
`ICA-2010-EMAGSA` |>
filter(!is.na(OBS_VALUE), FREQ == freq_dominant) |>
group_by(TIME_PERIOD) |>
summarise(OBS_VALUE = mean(OBS_VALUE, na.rm = TRUE), .groups = "drop") |>
convert_fn() |>
ggplot() + theme_minimal() + xlab("") + ylab("Average value across all series") +
geom_line(aes(x = date, y = OBS_VALUE)) +
scale_x_date(date_labels = "%Y")