brand_add_data() left-joins user-prepared additional data into
brand$data using either respondent-level or respondent-by-brand keys.
Usage
brand_add_data(brand, data, by = c("response_id", "brand"), overwrite = FALSE)Arguments
- brand
A
g6tr_brandobject created withbrand_create().- data
A prepared data frame to join into
brand$data.- by
Join keys. Must be either
"response_id"orc("response_id", "brand").- overwrite
If
TRUE, allow existing non-key columns inbrand$datato be replaced by columns fromdata.