sum_activity | R Documentation |
sum_activity()
counts the number of active time periods (i.e., days, weeks,
months, years, or waves) by panelist_id
. A period counts as "active" if
the panelist provided at least one visit for that period.
sum_activity(wt, timeframe = "date")
wt |
webtrack data object. |
timeframe |
character. Indicates for what time frame to aggregate visits.
Possible values are |
a data.frame with columns panelist_id
, column indicating the
number of active time units.
## Not run:
data("testdt_tracking")
wt <- as.wt_dt(testdt_tracking)
# summarize activity by day
wt_sum <- sum_activity(wt, timeframe = "date")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.