We have retailer data stored in a database, if there is no sale for one item, then there is no row for that item in the database. So after fetch the data from database to R, there will be same gap in the result time series. Is there any way the remove the time series in R (insert back the missing data with value of 0)?
Share
As shown only yesterday, just construct a vector with the desired timeframe, and merge.
See also this question from yesterday.