bdc_db_tables: Initializes the database with the orders data

Description Usage Arguments

View source: R/db-tables.R

Description

Initializes the database with the orders data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
bdc_db_tables(
  con,
  avg_daily_orders = 100,
  avg_no_items = 3,
  days_in_segment = 10,
  no_of_segments = 100,
  seed = 7878,
  product_data = bdc_data_products(),
  customer_data = bigdataclass::customers,
  start_date = "2016-01-01",
  orders_view = "v_orders",
  lineitems_view = "v_lineitems"
)

Arguments

con

Database connection

avg_daily_orders

Number of average daily orders

avg_no_items

Average number of sales in an order

days_in_segment

Days in a segment

no_of_segments

Number of segments

seed

Seed to randomize to

product_data

Product data frame source

customer_data

Customer data frame source

start_date

The start date for the orders

orders_view

Name to give to the orders view

lineitems_view

Name to give the line items view


edgararuiz/bigdataclass documentation built on Jan. 3, 2020, 6:46 p.m.