0

Let's say I have a data that looks like this:

Year Age Marks
1921 1 100
1921 2 89
1922 1 35
1922 2 24
1923 1 19
1923 2 15

Then,I want to change the table into this:

Age 1921 1922 1923
1 100 35 19
2 89 24 15

I couldn't figure out the codes in R Programming to change the structure of my data since I am still new to this. Thank you in advance.

Izzah
  • 1
  • 1

0 Answers0