tsSummary: Calculate summary statistics for time series variables For...

Description Usage Arguments Value

Description

Calculate summary statistics for time series variables For each combination of [id/measure] summary statistics are calculated over all periods

Usage

1
tsSummary(df, idvar, pfx, sfx, ...)

Arguments

df

(data frame) data set containing the time series variables

idvar

(character) name of the variable that uniquely identifies subjects in the data

pfx

(character) vector of prefix patterns for each time series variable

sfx

(character) pattern yielding period-specific values for each time series variable

...

(functions) functions to evaluate for each [id/measure] (built-in or user-defined)

Value

a data frame containing the idvar and one column for each combination of [measure/stat]


etlundquist/eRic documentation built on May 16, 2019, 9:07 a.m.