dataframe - How to transform particular rows into columns in R -
i'm new r , question might seem easy of you. have data this > data.frame(table(dat),total) ageintervals mytest.g_b_flag freq total 1 (1,23] 0 5718 5912 2 (23,26] 0 5249 5579 3 (26,28] 0 3105 3314 4 (28,33] 0 6277 6693 5 (33,37] 0 4443 4682 6 (37,41] 0 4277 4514 7 (41,46] 0 4904 5169 8 (46,51] 0 4582 4812 9 (51,57] 0 4039 4236 10 (57,76] 0 3926 4031 11 (1,23] 1 194 5912 12 (23,26] 1 330 5579 13 (26,28] 1 209 3314 14 (28,33] 1 416 6693 15 (33,37] 1 239 4682 16 (37,41] 1 237 4514 17 (41,46] 1 265 5169 18 (46,51] 1 230 4812 19 (51,57] 1 197 4236 20 (57,76] 1 105...