rep_daily_aggregate: Compute daily aggregate and repeat it for each record

Description Usage Arguments Value

View source: R/tea.R

Description

x must have the same number of records for each day and contain only complete days.

Usage

1
rep_daily_aggregate(x, FUN, nrecday)

Arguments

x

vector

FUN

function(x) -> numeric scalar to aggregate over each column of a matrix with a day in each row, i.e. colSums or applycols(sum) daily numeric vector

nrecday

number of records fore each day

Value

vector of the same length as x


bgctw/etpart documentation built on Dec. 19, 2021, 8:49 a.m.