I´m having this issue, and I can´t find the solution.
I have this data frame:
Date, Product, Value1, Value2
13-3-2020, A, 10, 15
13-4-2020, A, 11, 26
13-5-2020, A, 14, 14
2-2-2018, B, 10, 15
18-2-2018, B, 11, 26
5-4-2018, B, 14, 14
5-5-2018, B, 12, 12
And I would like to fill with the first day of the month in the dates between each product, so for each product would be a different "from date" and "until" date. The output i want to achieve would be like this:
Date, Product, Value1, Value2
13-3-2020, A, 10,
15 1-4-2020, A, NA, NA
13-4-2020, A, 11, 26
1-5-2020, A, NA, NA
13-5-2020, A, 14, 14
2-2-2018, B, 10, 15
18-2-2018, B, 11, 26
1-3-2018, B, NA, NA
1-4-2018, B, NA, NA
5-4-2018, B, 14, 14
1-5-2018, B, NA, NA
5-5-2018, B, 12, 12
Any help is very appreciated.