<- tibble::tribble(
mydata ~year, ~country, ~age, ~is_married, ~has_child, ~is_woman,
1990, "France", 68, TRUE, FALSE, TRUE,
1990, "France", 22, FALSE, FALSE, TRUE,
1990, "Italy", 28, FALSE, TRUE, FALSE,
1990, "Italy", 56, TRUE, TRUE, FALSE,
1990, "Italy", 36, TRUE, TRUE, FALSE,
1990, "Switzerland", 23, FALSE, TRUE, TRUE,
1990, "Switzerland", 23, FALSE, FALSE, FALSE,
2000, "France", 13, FALSE, FALSE, TRUE,
2000, "France", 63, TRUE, TRUE, FALSE,
2000, "Italy", 43, TRUE, FALSE, FALSE,
2000, "Switzerland", 42, TRUE, TRUE, TRUE,
2000, "Switzerland", 32, TRUE, FALSE, TRUE
)
mydata
# A tibble: 12 × 6
year country age is_married has_child is_woman
<dbl> <chr> <dbl> <lgl> <lgl> <lgl>
1 1990 France 68 TRUE FALSE TRUE
2 1990 France 22 FALSE FALSE TRUE
3 1990 Italy 28 FALSE TRUE FALSE
4 1990 Italy 56 TRUE TRUE FALSE
5 1990 Italy 36 TRUE TRUE FALSE
6 1990 Switzerland 23 FALSE TRUE TRUE
7 1990 Switzerland 23 FALSE FALSE FALSE
8 2000 France 13 FALSE FALSE TRUE
9 2000 France 63 TRUE TRUE FALSE
10 2000 Italy 43 TRUE FALSE FALSE
11 2000 Switzerland 42 TRUE TRUE TRUE
12 2000 Switzerland 32 TRUE FALSE TRUE