I currently have a data frame that looks like
| Trial # | Header | Header 2 | Header 3 | 
|---|---|---|---|
| 1 | 1 | 1.1 | 1.2 | 
| 2 | 2 | 2.1 | 2.2 | 
| 3 | 3 | 3.1 | 3.2 | 
| 4 | 4 | 4.1 | 4.2 | 
And I need to add mutate the data frame so there is a year column and each trial repeats 3 times. Something that looks like:
| Trial # | Header | Header 2 | Header 3 | Year | 
|---|---|---|---|---|
| 1 | 1 | 1.1 | 1.2 | 1 | 
| 1 | 1 | 1.1 | 1.2 | 2 | 
| 1 | 1 | 1.1 | 1.2 | 3 | 
| 2 | 2 | 2.1 | 2.2 | 1 | 
| 2 | 2 | 2.1 | 2.2 | 2 | 
| 2 | 2 | 2.1 | 2.2 | 3 | 
| 3 | 3 | 3.1 | 3.2 | 1 | 
| 3 | 3 | 3.1 | 3.2 | 2 | 
| 3 | 3 | 3.1 | 3.2 | 3 | 
| 4 | 4 | 4.1 | 4.2 | 1 | 
| 4 | 4 | 4.1 | 4.2 | 2 | 
| 4 | 4 | 4.1 | 4.2 | 3 | 
I am not sure how to go about accomplishing this so any help is appreciated!
 
     
    