aggregate_by_day: Aggregate the raw data into an equally-spaced data frame

Description Usage Arguments

View source: R/aggregate.by.day.R

Description

Aggregate the raw data into an equally-spaced data frame

Usage

1
aggregate_by_day(dat, variable, ID, timestamp, agg_fun)

Arguments

dat

Data in a data.frame format

variable

Name of variable in the data set you would like to re-structure

ID

Name of ID variable in the data set

timestamp

Name of time variable in the data set

agg_fun

Function used for aggregation. Default is sum.


andyyu6227/MH.datapipe documentation built on Jan. 1, 2022, 10:18 p.m.