I have the following dataframe :
Place Age janv17 fev17 mars17 avril17 mai17 juin17
France 69 0 0 1 1 1 1
Germany 69 0 0 1 1 1 1
Germany 45 0 0 0 0 0 0
National 35 0 0 0 0 0 0
France 43 0 0 0 0 0 0
Germany 69 0 0 0 0 0 0
France 39 0 0 0 0 0 0
France 28 0 0 0 0 0 0
I need to turn it into something like this :
France Germany
janv17 0 0
fev17 0 0
mars17 0 0
avril17 1 1
mai17 1 1
juin17 1 1
And I need this table for each age. Do you have any idea how to do so ? I am new to R.
Thank you!