Fix NA runs in a Rle when the adjacent runs have equal values
fixSegNAs(x, max.na.run = 3)
x
Rle to be fixed
max.na.run
integer, longest run of NAs that will be fixed
Rle