fill_in_empty_rows <- function(df) {
for (i in 1:ncol(df)) {
x <- df %>%
select(i) %>%
distinct() %>%
pull
l <- length(x)
if (l > 1 & NA %in% x) {
df <- df %>%
fill(i,.direction = 'down')
} else {
next()
}
}
return(df)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.