New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New function: tq_index(); potentially change "get" arg to "type"; allow the "get" arg to take a vector #8
Comments
@DavisVaughan: I will still do the splitting out of the "stock.index" option, to |
@mdancho84 the only other synonym for this that I can think of would be In terms of keeping users from being confused, deprecation is an option. I wouldn't be surprised if you already knew about this, just sharing. Sounds great about |
I agree that it should be a noun. Just thinking that type was already used. Let me think it over and try a few things. |
@DavisVaughan I believe all of the functionality is incorporated correctly. When you get a FREE moment, please let me know if it works as you expect. A few notes:
Let me know your thoughts and if we can close out. Thanks, Matt |
Abstractly, the types of data that
tq_get()
retrieves are all about a specific asset (the price of the asset, the financials of the asset, the dividends, etc) EXCEPT for"stock.index"
. This is not information about a specific asset, but a list of the assets themselves.With that in mind, maybe it would make sense to separate
tq_index()
as it's own function, takingexchange =
as an argument or something similar.Then, it would make sense to allow
tq_get()
to take in a vector in the get/type argument.If, for example, you did the following:
tq_index("SP500") %>% tq_get(type = c("stock.prices", "financials"))
wouldn't it be cool if that returned a nested tibble of 500 rows, with columns of
symbol
,stock_price
, andfinancials
, wherestock_price
andfinancials
are list-columns for that row?The text was updated successfully, but these errors were encountered: