I have a problem with some sales data where my date-variable have irregular "jumps", because there are times where a product did not sell in some of the months during a year.
For example:
Data        Product     Sales  
01-2016     X           10
02-2016     X           20
06-2016     X           30
01-2016     Y           40
07-2016     Y           50
How do I transform this data, so it combines all dates with all products?
Data        Product     Sales  
01-2016     X           10
02-2016     X           20
03-2016     X           0
04-2016     X           0
05-2016     X           0
06-2016     X           30
07-2016     X           0
08-2016     X           0
09-2016     X           0
10-2016     X           0
11-2016     X           0
12-2016     X           0
01-2016     Y           40
02-2016     Y           0
03-2016     Y           0
04-2016     Y           0
05-2016     Y           0
06-2016     Y           0
07-2016     Y           50
08-2016     Y           0
09-2016     Y           0
10-2016     Y           0
11-2016     Y           0
12-2016     Y           0
I.e. inserting the missing observations and assigning a zero to the Sales-variable?
 
     
    