I am using below code to bring NSE Auto data from yahoo finance:
nseauto <- na.omit(getSymbols('^CNXAUTO', from = maxdate, auto.assign = F))[4]
The error it shows is as follows:
Error in `[.xts`(na.omit(getSymbols("^CNXAUTO", from = maxdate, auto.assign = F)), :
subscript out of bounds
What does this mean and how to resolve this?