verticals: verticals dataset

Description Usage Format Details Examples

Description

verticals dataset

Usage

1

Format

A data frame with 21 observations and 4 variables.

vertical

character an certain sales vertical

sales

numeric a size of sale

counts

integer counts size

v_date

character Date

Details

random data - aggregate sales across e-commerce verticals

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
set.seed(1234)
agg_old <- data.frame(
 vertical = c("Electronics", "Kids1", "Kids2", "Automotive", "Books",
              "Clothes", "Home", "Fashion", "Health", "Sport"),
 sales = rnorm(10, 100, 10),
 counts = rgeom(10, 0.0001),
 v_date = rep("2020-04-01", 10), stringsAsFactors = FALSE
)

agg_new <- data.frame(
 vertical = c("Electronics", "Supermarket", "Kids", "Automotive1",
              "Automotive2", "Books", "Clothes", "Home", "Fashion", "Health", "Sport"),
 sales = rnorm(11, 100, 10),
 counts = rgeom(11, 0.0001),
 v_date = rep("2020-05-01", 11), stringsAsFactors = FALSE
)
verticals <- rbind(agg_old, agg_new)

cat2cat documentation built on March 27, 2021, 9:05 a.m.