I'm quite new to R so please excuse me if what I'm asking is somewhat trivial. So, I acquired a csv file containing something like this from an image analysis program:
FRAME OBJECT_IS_IN_TARGET_AREA
1 0
2 1
5 1
6 0
7 0
... ...
241 1
As you can see, there is no row for frame 3 and 4 and there might be rows missing further down until frame 241. Now, is there a way to complement the dataframe with the missing rows to receive a consecutive sequence of numbers ranging from 1 to 241 and assign each complemented row N/A for OBJECT_IS_IN_TARGET_AREA? The data frame should look like this in the end:
FRAME OBJECT_IS_IN_TARGET_AREA
1 0
2 1
3 N/A
4 N/A
5 1
6 0
7 0
... ...
241 1
Sadly, it is not possible to acquire these values from the image analysis program directly so I'd have to add them manually. Since I have a lot of these sequences this would be very tideous work. This is why I opted for R. Hope you can help me out.
Great Thanks,
E.