Learn R Programming

FedData (version 4.0.1)

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 = F)

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?