Learn R Programming

PortfolioTesteR (version 0.1.4)

print.backtest_result: Print Backtest Results

Description

S3 print method for backtest results. Shows key performance metrics.

Usage

# S3 method for backtest_result
print(x, ...)

Value

Invisible copy of x

Arguments

x

backtest_result object

...

Additional arguments (unused)

Examples

Run this code
data("sample_prices_weekly")
mom <- calc_momentum(sample_prices_weekly, lookback = 12)
sel <- filter_top_n(mom, n = 10)
W   <- weight_equally(sel)
res <- run_backtest(sample_prices_weekly, W)
print(res)

Run the code above in your browser using DataLab