consecutive_add: consecutive_add - add consecutive events

Description Usage Arguments

View source: R/consecutive_add.R

Description

This function will count repeat observations and add them together it creates a new data frame for duration of each event

Usage

1
consecutive_add(data, threshold, use_index = F, index_value = NULL)

Arguments

data

the a data frame or vector to count

threshold

what value should the distinguishing be?

use_index

boolean, should it index a value for start and end?

index_value

if use_index true, provide a value for labels


TheAlexBarth/HelperBox documentation built on Dec. 18, 2021, 4:09 p.m.