# NOT RUN {
test_df <- tidytable(
x = c(NA, NA, NA, 4:10),
y = c(1:6, NA, 8, NA, 10),
z = c(rep("a", 8), rep("b", 2)))
test_df %>%
fill.(x, y, .by = z)
test_df %>%
fill.(x, y, .by = z, .direction = "downup")
# }
Run the code above in your browser using DataLab