Description Usage Arguments Value
reduces repeated measures (for id) of a set of count varaibles
1 | observe.wide(data, id, index.date, vars, interval)
|
data |
a data frame with a 'date' column, an index.date column, an id column and a set of count variables to be reduced to one row per id (n = length(unique(ids))). |
id |
name of id column. |
index.date |
name of index date column |
vars |
vector of names of the count variables to be reduced |
intervel |
the limits of an interval expressed as integer days relative to the index date |
a data frame with one row per id and columns with counts of input vars within interval
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.