Learn R Programming

PortfolioTesteR (version 0.1.4)

manual_adapter: 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")

Value

Standardized data.table

Arguments

data

User-provided data frame

date_col

Name of date column (default: "Date")

Examples

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

Run the code above in your browser using DataLab