Learn R Programming

PortfolioTesteR (version 0.1.4)

validate_data_format: Validate Data Format for Library Functions

Description

Checks that data meets library requirements: proper Date column, at least one symbol, correct data types. Prints diagnostic info.

Usage

validate_data_format(data)

Value

TRUE if valid, stops with error if not

Arguments

data

Data frame to validate

Examples

Run this code
data("sample_prices_weekly")
# Check if data is properly formatted
validate_data_format(sample_prices_weekly)

Run the code above in your browser using DataLab