Weekly sales data of 11 analgesics products at the store level. Data is for 73 stores over 48 weeks

data('analgesics')

Format

A data.frame with 38544 observations on 8 variables:

  • store_id: Numeric identifier for each store

  • week_id: Numeric identifier for week of data

  • brand_id: Numeric identifier for brand of analgesic

  • sales: Number of units sold

  • customers: Number of customers at store in a week

  • price: Product price

  • promotion: = TRUE if brand is on promotion

  • wholesale_price: Price store pays for product

Examples

str(analgesics)
#> Classes ‘tbl_df’, ‘tbl’ and 'data.frame': 38544 obs. of 8 variables: #> $ store_id : int 2 2 2 2 2 2 2 2 2 2 ... #> $ week : int 1 2 3 4 5 6 7 8 9 10 ... #> $ brand_id : int 1 1 1 1 1 1 1 1 1 1 ... #> $ sales : int 16 12 6 12 10 13 11 9 9 8 ... #> $ customers : int 14181 13965 13538 13735 13735 14553 14229 13890 13890 15164 ... #> $ price : num 3.29 3.27 3.37 3.3 3.34 3.38 3.32 3.32 3.32 3.29 ... #> $ promotion : logi FALSE FALSE FALSE FALSE FALSE FALSE ... #> $ wholesale_price: num 2.06 2.04 2.15 2.07 2.12 2.17 2.1 2.09 2.09 2.08 ...