Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renaming Total.Net.Profit column to Net.Trading.PL #106

Closed
wants to merge 1 commit into from

Commits on Jun 15, 2020

  1. Renaming Total.Net.Profit column to Net.Trading.PL

    Although the column is currently named "Total.Net.Profit", the name in the output is "Net.Trading.PL", as the column name is being derived from last(Equity) which has the column name "Net.Trading.PL".
    By renaming this column in the ret and tmpret data frames the column names in the output won't change when tradeStats is being called on a portfolio with transactions, however, the output will be different when tradeStats is run on a portfolio without transactions as the column name will change from "Total.Net.Profit" to "Net.Trading.PL". By renaming this will prevent the matching error which occurs when trying to rbind the tradeStats of the portfolios with transactions ("Net.Trading.PL") with the portfolios without ("Total.Net.Profit") when using the apply.paramset function.
    scottwcclark authored Jun 15, 2020
    Configuration menu
    Copy the full SHA
    91ff26d View commit details
    Browse the repository at this point in the history