I'm trying to set the start_date and end_date of datasets in list as well as it's periodicity in R. But I'm not able to write a for loop for selecting the datasets in the list.
The code is as follows
require(quantmod)
require(xts)
econ_data <- new.env()
symbols <- c('ICSA', 'INDPRO', 'NFCI'
)
getSymbols(Symbols = symbols, src='FRED', env = econ_data)
data <- eapply(env = econ_data, FUN = merge.xts)
#Now I want to set the start and end date of all datasets and it's periodicity together, same. (I tried with xts functions but was not able to, I think a proper for loop can do the job, not sure)
It would be really great if someone could help me out. :)