I have the following table
District pnum violentIncidents nonviolentIncidents
Central 1 84 298
Eastern 1 82 178
Northeastern 1 91 313
Northern 1 47 247
Central 2 75 234
Eastern 2 33 224
Northeastern 2 254 33
Northern 2 344 244
However, I want it to be reshaped so that Pnum is horizontal, and for each district I have their totals for that pnum.
Where for each pnum, I have a listing of the variables and their counts by district.
Is this possible? Thank you.
EDIT: How would I re do it so it looks like this?