My data is currently presented as a frequency table of age and gender sorted by each region (as follows as an example of a couple of rows)
Region | age | gender | population |
---|---|---|---|
1 | 0 | M | 114 |
1 | 0 | F | 87 |
1 | 1 | M | 36 |
1 | 1 | F | 54 |
It is a large data set and has 500 regions and data for males and females aged 0-55. I am wanting to present the data with each region as one row, with total male and female populations being split into separate columns. It would also help to be able to have columns showing total population <30 and total population >=30 for each region. e.g.:
Region | M | F | Total | <30 | >=30 |
---|---|---|---|---|---|
1 | 150 | 215 | 365 | 200 | 165 |
2 | 85 | 75 | 160 | 95 | 65 |
Thanks in advance.