loop_group: Loop Group

View source: R/func_loop_group.R

loop_groupR Documentation

Loop Group

Description

Take a data.frame with grouped data i.e grouped by hour for a diurnal, and duplicate
the first group at the end of the data.frame, with its grouping variable == max(group)+1

Usage

loop_group(df, by = NULL, grp = NULL)

Arguments

df

data.frame contained grouped/binned data

by

value of the increment between groups, if NULL an attempt is made to guess this value

grp

column containg grouping data. if NULL the first group of the grouped data.frame will be used.

Author(s)

W. S. Drysdale


willdrysdale/wsdmiscr documentation built on Aug. 26, 2023, 12:31 a.m.