# Create fake data
id <- c('Algeria', NA, NA, NA, 'Mexico', NA, NA)
score <- rnorm(7)
Data <- data.frame(id, score)
# FillDown id
DataOut <- FillDown(Data, 'id')
## Not run:
# # Use group_by and mutate from dplyr to FillDown grouped data, e.g.:
# Example <- Example %>% group_by(grouping) %>%
# mutate(NewFilled = FillDown(Var = VarToFill))
# ## End(Not run)
Run the code above in your browser using DataLab