How to check missing days in datasets in R

Take a look at this thread for the rle approach.