sum_activity {webtrackR} | R Documentation |
Summarize activity per person
Description
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.
Usage
sum_activity(wt, timeframe = "date")
Arguments
wt |
webtrack data object. |
timeframe |
character. Indicates for what time frame to aggregate visits.
Possible values are |
Value
a data.frame with columns panelist_id
, column indicating the
number of active time units.
Examples
## 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)
[Package webtrackR version 0.3.1 Index]