You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: This package provides access to a made-up dataset simulating sales transactions from the fictional "Contoso" company. The dataset includes various related tables that contain essential business and operational data, useful for analyzing sales performance and other business insights. Key tables included in the package are:
12
+
Description: A collection of synthetic datasets simulating sales transactions from a fictional company. The dataset includes various related tables that contain essential business and operational data, useful for analyzing sales performance and other business insights. Key tables included in the package are:
13
13
- "sales": Contains data on individual sales transactions, including order details, pricing, quantities, and customer information.
14
14
- "customer": Stores customer-specific details such as demographics, geographic location, occupation, and birthday.
15
15
- "store": Provides information about stores, including location, size, status, and operational dates.
16
16
- "orders": Contains details about customer orders, including order and delivery dates, store, and customer data.
17
-
- "orderrows": Provides detailed information about each item in an order, including product, quantity, pricing, and cost.
18
17
- "product": Contains data on products, including attributes such as product name, category, price, cost, and weight.
19
-
- "fx": Foreign exchange data with exchange rates for different currencies used in the sales transactions.
20
18
- "date": A time-based table that includes date-related attributes like year, month, quarter, day, and working day indicators.
21
19
This dataset is ideal for practicing data analysis, performing time-series analysis, creating reports, or simulating business intelligence scenarios.
Copy file name to clipboardExpand all lines: R/database.R
+70-3Lines changed: 70 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@
14
14
#' - `store`: Contains information about store locations and attributes.
15
15
#' - `fx`: Contains foreign exchange rate data for currency conversion.
16
16
#' - `date`: Contains various date-related information, including day, week, month, and year.
17
+
#' - `con`: the duckdb connection to your database
17
18
#'
18
19
#' You can choose to store the database in memory or in a temporary directory. If you choose "temp", the database will be created in a temporary file on disk. If you choose "in_memory", the database will be created entirely in memory and will be discarded after the R session ends.
<p>Contoso is a synthetic dataset containing sample sales transaction data for the fictional “Contoso” company. It includes various supporting tables for business intelligence, such as customer, store, product, and currency exchange data.</p>
93
88
<p>This dataset is perfect for practicing time series analysis, joins, financial modeling, or any business intelligence-related tasks.</p>
94
89
<p>It comes with a built-in dataset as well as the ability to create an in-memory database with <ahref="https://duckdb.org/">duckdb</a></p>
Copy file name to clipboardExpand all lines: README.qmd
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -37,9 +37,8 @@ Built into the package is the 10K row version of the dataset.
37
37
38
38
Using `view()`, you can see the columns' label using the [labelled](https://larmarange.github.io/labelled/index.html) package.
39
39
40
-
::: {.callout-note}
41
-
Inspiration to using [labelled](https://larmarange.github.io/labelled/index.html) comes from [Crystal Lewis](https://cghlewis.com/blog/dict_clean/) excellent blog post
42
-
:::
40
+
41
+
> Inspiration to using [labelled](https://larmarange.github.io/labelled/index.html) comes from [Crystal Lewis](https://cghlewis.com/blog/dict_clean/) excellent blog post
43
42
44
43
If you want a larger dataset, there is also 100K, 1M, 10M and 100M row version which can be created with `create_contoso_duckdb()` function.
0 commit comments