Skip to contents

Returns the tidy-finance/factor-library-grid dataset, which describes every portfolio construction available in the factor library (one row per construction, identified by id). Use the returned tibble to discover which (sorting_variable, weighting_scheme, rebalancing, ...) combinations exist before requesting their returns with download_factor_library_ids().

Usage

download_factor_library_grid(refresh = FALSE)

Arguments

refresh

Logical(1). If TRUE, the grid is downloaded again and replaces the copy cached in the current session. Defaults to FALSE.

Value

A tibble with one row per portfolio construction in the factor library, including the integer id column used by download_factor_library_ids().

Details

Equivalent to calling download_data("Tidy Finance", "factor_library_grid").

The grid is downloaded once per R session and cached in memory, so repeated calls (including those made by download_factor_library_ids() and download_data("Tidy Finance", "factor_library", ...)) reuse it. Set refresh = TRUE to download it again.

Examples

if (FALSE) { # \dontrun{
  download_factor_library_grid()
} # }