add_panelist_data | R Documentation |
Adds information about panelists (e.g., from a survey) to the tracking data.
add_panelist_data(wt, data, cols = NULL, join_on = "panelist_id")
wt |
webtrack data object. |
data |
a data frame containing panelist data which contains columns about panelists |
cols |
character vector of columns to add. If |
join_on |
which columns to join on. Defaults to |
webtrack object with the same columns and the columns from data
specified in cols
.
## Not run:
data("testdt_tracking")
data("testdt_survey_w")
wt <- as.wt_dt(testdt_tracking)
# add survey test data
add_panelist_data(wt, testdt_survey_w)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.