How do I perform this loop in RStudio using R library?
#Use previous row\'s value to predict for next all rows(in col a) after rows when data not available # df i