I have a data that looks like this:
SN TimeStamp MOTOR
1 1/27/20 18:00 0
2 1/27/20 18:02 1
3 1/27/20 18:04 0
4 1/27/20 18:05 1
5 1/27/20 18:08 0
How can make it look like this?
SN TimeStamp MOTOR
1 1/27/20 18:00 0
2 1/27/20 18:01 NA
3 1/27/20 18:02 1
4 1/27/20 18:03 NA
5 1/27/20 18:04 0
6 1/27/20 18:05 1
7 1/27/20 18:06 NA
8 1/27/20 18:07 NA
9 1/27/20 18:08 0
Basically, my question is how can I insert missing timestamp and assign the corresponding MOTOR values as NA?
I would be thankful if anyone could help. I just started learning R and this is giving me headache since morning.
Thanks.