manual_adapter: Adapter for User-Provided Data

View source: R/data_adapters.R

manual_adapterR Documentation

Adapter for User-Provided Data

Description

Simple adapter for when users provide their own data frame. Ensures proper Date formatting and sorting.

Usage

manual_adapter(data, date_col = "Date")

Arguments

data

User-provided data frame

date_col

Name of date column (default: "Date")

Value

Standardized data.table

Examples

# Use your own data frame
data("sample_prices_weekly")
my_prices <- manual_adapter(sample_prices_weekly)

PortfolioTesteR documentation built on Nov. 5, 2025, 5:23 p.m.