Skip to contents

Get a logical vector of which elements in a vector are sequentially duplicated.

Usage

sequential_duplicated(x, rows = F)

Arguments

x

An vector of any type, or, if rows, a matrix.

rows

Is x a matrix?

Value

A logical vector of the same length as x.