structure(list(...2 = c(
"<1", "1-4", "5-9", "10-14", "15-19",
"20-24"
), ...3 = c(48, 8, 4, 4, 6, 11), ...4 = c(
50, 9, 8, 9,
16, 23
), ...5 = c(69, 7, 5, 4, 10, 25), ...6 = c(
53, 9, 4, 8,
15, 30
), ...7 = c(50, 6, 5, 4, 23, 23), ...8 = c(
30, 8, 4, 4,
10, 34
), ...9 = c(43, 6, 2, 4, 16, 26), ...10 = c(
51, 5, 6, 7,
20, 18
), ...11 = c(49, 7, 6, 7, 24, 25), ...12 = c(
56, 11, 2,
7, 21, 23
), ...13 = c(53, 13, 3, 6, 18, 39), ...14 = c(
44, 2,
6, 4, 15, 22
), ...15 = c(49, 8, 1, 4, 12, 17), ...16 = c(
51,
8, 5, 8, 9, 20
), ...17 = c(38, 6, 4, 4, 8, 16)), row.names = 21:26, class = "data.frame") -> problem_frame
almost_there <- t(problem_frame) %>% as_data_frame()
names(almost_there) <-problem_frame[,1]
closer <- almost_there %>% slice(-1)
finished <- closer %>% mutate_all(as.integer)