Learn R Programming

backtestGraphics (version 0.1.8)

create_strategy_optGroups: Create opt group list for selectizeInput for strategies

Description

This function accepts the strategy and substrategy columns of the data set and create a list of groups as required by the selectizeInput optgroup functionality

Usage

create_strategy_optGroups(strategy, substrategy)

Value

a list of groups for strategy/ substrategy as required by the selectizeInput optgroup functionality

Arguments

strategy

strategy column

substrategy

substrategy column

Details

We assume that substrategies pertaining to a given strategy uses the name of the strategy followed by a period and then the substrategy number. For example, substrategy 2 for strategy 1 must be named "Strategy 1.2".