Description Usage Arguments Value
View source: R/observe.count.R
count observations from one 'value' variable containing qualitative codes of any kind
1 | observe.count(data, id, index.date, value, interval, valid.values, bin = F)
|
data |
is a dataframe with an id column, an index.date column, a value column and a date column ('date') |
id |
name of id column (multiple instances within id are aggregated to one row) |
index.date |
name of column containing and index/reference date |
value |
name of column with values to be counted and aggregated by id |
interval |
two outer limits as days (integer) relative to index. Positive integers look ahead, negative integers look back, (-10, +10) will observe 10 days around (pre/post) the index date |
returns a data frame of one row per id, that counts all incidences of all valid values within interval of days relative to index date
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.