# \donttest{
# sampled promotions data set
promotions_sample
# Join promotions to transactions to analyze
# product promotion/location
require("dplyr")
transactions_sample %>%
left_join(
promotions_sample,
c("product_id", "store_id", "week")
)
# }
Run the code above in your browser using DataLab