powered by
Fill missing observations forward using the last finite observation
fill_forward(x)
Transition matrix from a VAR model
x with missing obs filled by forward value
# NOT RUN { fill_forward(c(1,2,NA,NA,3,NA,5)) ## 1 2 2 2 3 3 5 # }
Run the code above in your browser using DataLab