Closed USMortality closed 4 months ago
fill_gaps seems to be not working on yearmonth:
harvest <- tsibble( date = c( make_yearmonth(year = 2000, month = 1), make_yearmonth(year = 2000, month = 4) ), fruit = rep(c("kiwi", "cherry"), each = 1), index = date ) # gaps as default `NA` fill_gaps(harvest, .full = TRUE)
output:
# A tsibble: 2 x 2 [3M] date fruit <mth> <chr> 1 2000 Jan kiwi 2 2000 Apr cherry
Expected would be to have it fill Feb, March with fruit = NA.
Looks like this fixed it: https://stackoverflow.com/a/75981369/2302437
fill_gaps seems to be not working on yearmonth:
output:
Expected would be to have it fill Feb, March with fruit = NA.