remove_consecutive: Remove consecutive (by one unit only)

View source: R/Utils.R

remove_consecutiveR Documentation

Remove consecutive (by one unit only)

Description

When you want to remove/merge consecutive grouping to one, such as combining consecutive survey year to one. Is there a simpler way to do this?

Usage

remove_consecutive(x, keep_first = TRUE)

Arguments

x

vector of integer


kklot/ktools documentation built on Aug. 13, 2024, 7:08 p.m.