I have a Dataset_1 that only has some values some months, e.g.
Day Month Year Value
10 5 2003 12
17 5 2003 46
1 6 2003 23
16 6 2003 43
16 10 2003 23
26 10 2003 12
and Dataset_2 that has regular 1 hour values for the same time period e.g
Day Month Year Hour Value
10 5 2003 0:00 13
10 5 2003 1:00 12
(...)
26 10 2003 21:00 12
26 10 2003 22:00 12
Dataset_1 is used to evaluate Dataset_2. I would therefore like to plot the regular-interval-Dataset_2 against the not-so-regular-Dataset_1. Is there a way, probably using the date stamps that are in common, to plot all the timesteps of Dataset_2 but to get R to plot the points of Dataset_1 at the corresponding date of Dataset_2?
Thank you.
The only thing you have to do is to declare your dates and time as indeed date and time objects:
You can then plot your data normally without taking any specific precaution because
plotwill recognize they are date and time objects.