I have multiple time series datasets to analyze. In order to analyze I have to do preprocessing. One troublesome task is to identify irregualar missing rows and insert rows of NAs.
So far, I did this with:
new <- rep(NA, length(dati))
dati <- InsertRow(dati, NewRow=new, RowNum = 1)
Has anyone an idea how I could neatly insert those missing values without visually identifying those rows? I made some research, but only found solutions for irregualr missing rows for continous time date (e.g. 00:01 00:02 00:03...). The problem is, that my datestamps (6 per day) are rather irregular regarding hour and minute
- Signal: around 9am,
- Signal: around 11:30am,
- Signal: around 2pm,
- Signal: around 4:30pm,
- Signal: around 7pm,
- Signal: around 9:30pm
The only fixed term is, that per day, there have to be 6 signals / rows in the described order, but some of them are missing. I added two pictures, demonstrating what data I have and what I need to get as a result.