sales: Sales Transactions Dataset

salesR Documentation

Sales Transactions Dataset

Description

This dataset contains sales transaction data, including order details, customer information, pricing, and revenue metrics.

Usage

sales

Format

A data frame with multiple rows and 17 columns:

order_key

integer. Unique identifier for each order.

line_number

integer. Line number within an order, representing individual items.

order_date

Date. Date when the order was placed.

delivery_date

Date. Date when the order was delivered.

customer_key

integer. Unique identifier for the customer.

store_key

integer. Unique identifier for the store where the transaction occurred.

product_key

integer. Unique identifier for the product.

quantity

numeric. Number of units sold in the transaction.

unit_price

numeric. Price per unit of the product in the original currency.

net_price

numeric. Final price per unit after discounts.

unit_cost

numeric. Cost per unit of the product.

currency_code

character. Currency code (e.g., "USD", "EUR").

exchange_rate

numeric. Exchange rate applied to the transaction currency.

gross_revenue

numeric. Total revenue before any deductions.

net_revenue

numeric. Revenue after deductions such as discounts and taxes.

cogs

numeric. Cost of goods sold (COGS).

margin

numeric. Profit margin calculated as net_revenue - cogs.

Source

Generated from fpaR::sales

Examples

data(sales)
head(sales)
summary(sales)

alejandrohagan/fpaR documentation built on April 12, 2025, 9:51 a.m.