Open joshuaulrich opened 1 year ago
if FOO is a valid symbol, but has no data for the date range requested, an xts object with no rows under the name FOO if FOO is an invalid symbol (no data for any dates), NULL under name FOO
in general, i always like results to have all items under the exact names and order that i requested them, unless there is a specific reason not to do so
Thanks for your thoughts!
I like that the result is a zero-length xts object for valid symbols with no data. The object will have the correct columns, so it can be manipulated like all other elements.
Invalid symbols will throw a warning. We could make an option that the symbol is a null element (the default) or that it's removed.
This is certainly wrong, but I'm not sure what the right answer is. Should the element for FOO be removed, or should there be an element named FOO that contains NULL, or an empty xts object, something else?