I am trying to download historical information on the S&P 500 through the function BatchGetSymbols, but I am getting an error message. Honestly I have no idea on how to fix it, could you please help me out on this? I need to deliver my paper today
Here's the code that I am using:
Here's what I am getting as error:
Running BatchGetSymbols for:
Downloading data for benchmark ticker
^GSPC | yahoo (1|1) | Not Cached - Error in download..
^GSPC | yahoo (1|1) | Not Cached - Error in download..Error in
! Input must be a vector, not NULL.
rlang::last_error() to see where the error occurred.
1: Unknown or uninitialised column:
2: Unknown or uninitialised column:
3: Unknown or uninitialised column:
4: Unknown or uninitialised column:
Thank you so much!