Hi all,
This may be simple, but I don't know how to generate such dates. For example, there are two days that have data, 1st and 16th day in each month. How to generate a sequence of dates? I tried the code below but got the error message. Thanks for your help.
> seq(as.Date('2000-01-01'),as.Date('2000-12-31'),by='bi-monthly')
Error in seq.Date(as.Date("2000-01-01"), as.Date("2000-12-31"), by = "bi-monthly") :
invalid string for 'by'