featForge_transactions {featForge} | R Documentation |
Transactions Data for Package Testing and Demonstration
Description
A dataset containing auto-generated banking transactions for package testing and demonstration purposes. This example dataset consists of over 200 rows and 5 variables that illustrate the structure of a typical transaction record associated with an application.
Usage
data(featForge_transactions)
Format
A data frame with over 200 rows and 5 variables.
Details
The dataset includes the following variables:
- application_id
A numeric identifier linking the transaction to the corresponding application.
- scrape_date
The end date of the transactions observation window. Assumed to be on the same date with the application's creation date.
- obs_start
The start date of the transactions observation window. Assumed to be 180 days apart with the scrape_date.
- transaction_date
The date and time when the transaction occurred. The date is always on or before the associated scrape_date (application's creation date) and on or after the obs_start date.
- amount
The monetary amount of the transaction. Negative values indicate outgoing transactions, while positive values indicate incoming transactions.
- description
A detailed description of the transaction. Descriptions vary in style and content, including combinations of generated institution names, random numbers, special characters, creative phrases, and full English sentences. For transactions with a category of "gambling", the description always includes the word "casino".
- category
The transaction category, such as groceries, salary, gambling, utilities, travel, entertainment, rent, or shopping.
This dataset was automatically generated for the purpose of testing and demonstrating the package functionality. The transactions simulate realistic banking activity linked to application records. The transaction dates are generated in relation to each application's creation date, ensuring logical consistency in the timeline, while the descriptions have been enriched to include a wide variety of content, with special attention given to transactions in the gambling category.
Examples
# Load the transactions dataset
data(featForge_transactions)
# Display the first few rows of the dataset
head(featForge_transactions)