R/utility_functions.R
fill_na_with_sum.Rd
Fills gaps in a column by accumulating values from another column. The values are accumulated along the series.
fill_na_with_sum(col1, col2)
Column to fill (will be modified)
Column with values to add
Vector with filled values
For each NA in col1, fills with col1[i-1] + col2[i]