I want to insert rows between two dates by group. My way of doing it is so complicated that I insert missing values by last observation carry forwards and then merge. I was wond
Assuming your data is called df1, and you want to add dates between two days try this:
library(dplyr) df2 <- seq.Date(as.Date("2015-01-03"), as.Date("2015-01-06"), by ="day") left_join(df2, df1)
If you're simply trying to add a new record, I suggest using rbind.
rbind()