fill(data, ..., .direction = c("down", "up"))
x:z
, exclude y with
-y
. For more options, see the select documentation.NULL
s are replaced
in list.fill_
for a version that uses regular evaluation
and is suitable for programming with.df <- data.frame(Month = 1:12, Year = c(2000, rep(NA, 11)))
df %>% fill(Year)
Run the code above in your browser using DataLab