powered by
Adds information about panelists (e.g., from a survey) to the tracking data.
add_panelist_data(wt, data, cols = NULL, join_on = "panelist_id")
webtrack object with the same columns and the columns from data
data
specified in cols.
cols
webtrack data object.
a data frame containing panelist data which contains columns about panelists
character vector of columns to add. If NULL, all columns are added. Defaults to NULL.
NULL
which columns to join on. Defaults to "panelist_id".
"panelist_id"
if (FALSE) { data("testdt_tracking") data("testdt_survey_w") wt <- as.wt_dt(testdt_tracking) # add survey test data add_panelist_data(wt, testdt_survey_w) }
Run the code above in your browser using DataLab