segs_from_peaks: Make segment labels

View source: R/utility_functions.R

segs_from_peaksR Documentation

Make segment labels

Description

Create a list of load/unload segment labels, given a list of turning points found using peaksign the first segment is assumed to be "load", followed by "unload" etc. The output can be used for grouping a data.table by segment

Usage

segs_from_peaks(peaks)

Arguments

peaks

the list of turning points from peaksign

Value

list of seg = c("load","unload") padded to the length of the original series


yadbor/bluer documentation built on Jan. 31, 2023, 7:44 p.m.