This function returns weights and constituents for a specified MSCI index.
msci_indicies_constituents( indicies = NULL, nest_data = TRUE, return_message = TRUE )
indicies | vector of indicies
|
---|---|
nest_data |
|
return_message |
|
nested tibble
or tibble
if nest_data = FALSE
Other MSCI:
msci_indicies()
,
msci_realtime_index_values()
Other index constituents:
crsp_indicies_constituents()
,
nareit_constituent_years()
,
sp500_constituents()
library(stringr) df_msci_indicies <- msci_indicies() ## Get all technology indicies and their constituents tech_indicies <- df_msci_indicies %>% filter(nameIndex %>% str_detect('TECH')) %>% .$nameIndex msci_indicies_constituents(indicies = tech_indicies, nest_data = TRUE, return_message = TRUE) msci_indicies_constituents(indicies = "NORTH AMERICA", nest_data = FALSE, return_message = TRUE)#' msci_indicies_constituents(indicies = NULL, nest_data = TRUE, return_message = TRUE)