Merge ABCD_scenario data from a database file (RDS or SQLite) with the portfolio data
Source:R/merge_abcd_from_db.R
merge_abcd_from_db.Rd
Merge ABCD_scenario data from a database file (RDS or SQLite) with the portfolio data
Usage
merge_abcd_from_db(
portfolio,
portfolio_type,
db_dir,
equity_market_list,
scenario_sources_list,
scenario_geographies_list,
sector_list,
id_col = "id"
)
Arguments
- portfolio
A data frame containing the processed portfolio data
- portfolio_type
A single string specifying the type of assets in the portfolio
- db_dir
A single string specifying the path to the directory that contains the database file
- equity_market_list
A character vector of equity markets to be included
- scenario_sources_list
A character vector of scenario sources to be included
- scenario_geographies_list
A character vector of senario geographies to be included
- sector_list
A character vector of sectors to be included
- id_col
A single string specifying the name of the id column in the portfolio data