Replace adjacent repeated elements in a vector
See also
tidyr::fill()
and vctrs::vec_fill_missing()
for the reverse operation.
uniql()
to identify non-repeated elements.
Replace adjacent repeated elements in a vector
tidyr::fill()
and vctrs::vec_fill_missing()
for the reverse operation.
uniql()
to identify non-repeated elements.