Skip to contents

ledgr_selection() creates a named logical vector for strategy helper pipelines. Selections are intermediate objects; strategies must not return them directly.

Usage

ledgr_selection(x, universe = NULL, origin = NULL)

Arguments

x

Named logical vector where TRUE means selected.

universe

Optional universe used to reject extra instrument names.

origin

Optional helper/source label for printing.

Value

A ledgr_selection object.

Articles

Strategy helper pipelines: vignette("strategy-development", package = "ledgr") system.file("doc", "strategy-development.html", package = "ledgr")

Examples

ledgr_selection(c(AAA = TRUE, BBB = FALSE), universe = c("AAA", "BBB"))
#> <ledgr_selection> [2 assets]
#> 1 selected
#>   AAA   BBB 
#>  TRUE FALSE