Code
yth_empl_030 %>%
left_join(sex, by = "sex") %>%
group_by(sex, Sex) %>%
summarise(Nobs = n()) %>%
arrange(-Nobs) %>%
{if (is_html_output()) print_table(.) else .}| sex | Sex | Nobs |
|---|---|---|
| F | Females | 70110 |
| M | Males | 70110 |
| T | Total | 70110 |
Data - Eurostat
yth_empl_030 %>%
left_join(sex, by = "sex") %>%
group_by(sex, Sex) %>%
summarise(Nobs = n()) %>%
arrange(-Nobs) %>%
{if (is_html_output()) print_table(.) else .}| sex | Sex | Nobs |
|---|---|---|
| F | Females | 70110 |
| M | Males | 70110 |
| T | Total | 70110 |
yth_empl_030 %>%
left_join(age, by = "age") %>%
group_by(age, Age) %>%
summarise(Nobs = n()) %>%
arrange(-Nobs) %>%
{if (is_html_output()) print_table(.) else .}| age | Age | Nobs |
|---|---|---|
| Y15-19 | From 15 to 19 years | 35055 |
| Y15-24 | From 15 to 24 years | 35055 |
| Y15-29 | From 15 to 29 years | 35055 |
| Y20-24 | From 20 to 24 years | 35055 |
| Y20-29 | From 20 to 29 years | 35055 |
| Y25-29 | From 25 to 29 years | 35055 |
yth_empl_030 %>%
left_join(unit, by = "unit") %>%
group_by(unit, Unit) %>%
summarise(Nobs = n()) %>%
arrange(-Nobs) %>%
{if (is_html_output()) print_table(.) else .}| unit | Unit | Nobs |
|---|---|---|
| PC | Percentage | 210330 |
yth_empl_030 %>%
left_join(geo, by = "geo") %>%
group_by(geo, Geo) %>%
summarise(Nobs = n()) %>%
arrange(-Nobs) %>%
{if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}yth_empl_030 %>%
filter(time == "2015",
nchar(geo) == 4,
sex == "T",
age == "Y15-29") %>%
left_join(geo, by = "geo") %>%
select(geo, Geo, unemployment = values) %>%
{if (is_html_output()) datatable(., filter = 'top', rownames = F) else .}yth_empl_030 %>%
filter(time == "2015",
nchar(geo) == 4,
sex == "T",
age == "Y15-29") %>%
right_join(europe_NUTS2, by = "geo") %>%
filter(long >= -15, lat >= 33) %>%
ggplot(., aes(x = long, y = lat, group = group, fill = values/100)) +
geom_polygon() + coord_map() +
scale_fill_viridis_c(na.value = "white",
labels = scales::percent_format(accuracy = 1),
direction = -1,
breaks = 0.01*seq(0, 100, 10),
values = c(0, 0.1, 0.2, 0.3, 0.4, 0.5, 1)) +
theme_void() + theme(legend.position = c(0.25, 0.85)) +
labs(fill = "Youth Employment (%)")