I would like to fill up string in this data set , so far fill up does not work , any other way to make it ? .
X1
1
2
3 sunday
4
5
6
7
8 monday
9
10 tuesday
11
12
13
14
15 wednesday
I tried this but it just fill a couple of spaces and I have to run this many times so that it can be complete.
for(i in 1:nrow(x))
if(x$X1[i]=="")
x$X1[i] <- x$X1[i+1]x