sequential_duplicated: Get a logical vector of which elements in a vector are sequentially duplicated.
Description
Get a logical vector of which elements in a vector are sequentially duplicated.
Usage
sequential_duplicated(x, rows = FALSE)
Value
A logical vector of the same length as x.
Arguments
- x
An vector of any type, or, if rows
, a matrix.
- rows
Is x a matrix?