# let's use a synthetic example to illustrate the use of the function
dates <- seq.Date(from = as.Date('1980-01-01'),
to = as.Date('2020-01-01'), by = 'day' )
var <- runif(n = length(dates), min = 0, max = 100)
met_var <- data.frame(date = dates, random = var)[-c(50:100, 251, 38) , ]
met_var_fill <- fill_table(x = met_var, by = 'day')
Run the code above in your browser using DataLab