Tag: Fill data frame values sequentially

  • How to fill down values in R data frame

    How to fill down values in R data frame

    There are at least two ways how to fill down values in R data frame columns. The fastest way is to use zoo package function na.locf that is combined with dplyr function mutate. Besides, sometimes in R, it is necessary to replace NA with 0. All of those things in this post.