I have a large data set like this:
SUB DAY BASE
1 0 .
1 0 .
1 0 .
1 0 .
1 1 3.5
1 1 3.5
1 2 3.5
1 2 3.5
2 0 .
2 0 .
2 0 .
2 1 2.3
2 1 2.3
2 2 2.3
2 2 2.3
...
I want to fill the missing value in BASE with the value from that SUB. The expected output should look like this:
SUB DAY BASE
1 0 3.5
1 0 3.5
1 0 3.5
1 0 3.5
1 1 3.5
1 1 3.5
1 2 3.5
1 2 3.5
2 0 2.3
2 0 2.3
2 0 2.3
2 1 2.3
2 1 2.3
2 2 2.3
2 2 2.3
...
Does anyone have idea about realizing this?