summary_statistic: apply a summary statistic over a set of replicate data

Description Usage Arguments Details Value

Description

apply a summary statistic over a set of replicate data

Usage

1
  summary_statistic(dat, indicator, windowsize, ...)

Arguments

dat

a data frame with columns "time", "reps", and "value" observed in a timeseries of replicates.

indicator

a function taking X and windowsize, such as window_var

windowsize,

passed to indicator function

...

additional optional arguments to the indicator function

Details

helper function just helps simple indicator functions be applied to data formated with replicate observations and still return nicely formatted data

Value

a data frame with columns "time", "reps", and "value", where values are the sliding-window computed summary statistics produced by indicator.


cboettig/earlywarning documentation built on May 13, 2019, 2:07 p.m.