same_inarow: Repeating values in a row within a Vector

View source: R/utils.R

same_inarowR Documentation

Repeating values in a row within a Vector

Description

Describes the Values of a vector the times they are repeated and the start and end position of those values

Usage

same_inarow(v)

Arguments

v

A character, factor or numeric vector

Value

A data frame with four columns: Value (-> listed value of the input vector), Repeats (times it is repeated in a row), starts_at (start position), ends_at (end position).


KWB-R/kwb.misa documentation built on March 18, 2022, 9:56 a.m.