I have a table like this:
Area AgeGroup RateOfSales
London 0-18 100
London 19-64 200
London 65+ 300
York 0-18 50
York 19-64 150
York 65+ 250
Area 0-18 19-64 65+
London 100 200 300
York 50 150 250
I.e. pivot so each AgeGroup variable is a column.
Can anyone advise please, I am new to R and just getting to grips with the dplyr function.
Thank you!