-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
only get closes #322
Comments
That's a good suggestion and has been raised before. You can find an implementation in the qmao package by @gsee. I would be interested in your thoughts on the makePriceFrame() function. I haven't taken a close look at it in awhile. The references to |
I have a function that merges multiple symbols into a data.table
you can then easily dcast to get the shape you want, and convert back to xts: yes, a lot of conversion going on, but much of it is the super efficient and fast data.table code. I find it plenty fast enough for my needs |
@ggrothendieck : Just to be explicit, you're asking for a wide format object containing multiple symbols from a single query, correct? I would see two ways of doing this that wouldn't break backwards compatibility. One would be a wrapper for The other way to do it would be much more work to redesign how |
Yes, basically this:
```
library(quantmod);
tickers <- c("AAPL", "TSLA");
getSymbols(tickers, env = stocks <- new.env());
result <- do.call("cbind", eapply(stocks, CL))
```
…On Thu, Jan 7, 2021 at 11:18 AM Brian G. Peterson ***@***.***> wrote:
@ggrothendieck <https://github.com/ggrothendieck> : Just to be explicit,
you're asking for a wide format object containing multiple symbols from a
single query, correct?
I would see two ways of doing this that wouldn't break backwards
compatibility. One would be a wrapper for getSymbols which would call
getSymbols and reshape the output data. This seems simplest from a
technical perspective given how the code currently works.
The other way to do it would be much more work to redesign how getSymbols
and the various method functions work internally, so I think a wrapper
would make the most sense working with a private (to the function)
environment.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#322 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB32F7Q66EUTC7GJRFNVJUTSYXNGNANCNFSM4VZESOJA>
.
--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com
|
CL was supposed to be Cl
…On Thu, Jan 7, 2021 at 11:18 AM Brian G. Peterson ***@***.***> wrote:
@ggrothendieck : Just to be explicit, you're asking for a wide format object containing multiple symbols from a single query, correct?
I would see two ways of doing this that wouldn't break backwards compatibility. One would be a wrapper for getSymbols which would call getSymbols and reshape the output data. This seems simplest from a technical perspective given how the code currently works.
The other way to do it would be much more work to redesign how getSymbols and the various method functions work internally, so I think a wrapper would make the most sense working with a private (to the function) environment.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
--
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com
|
i didnt know about Seems like a |
Related: #39. |
A common situation is that one just wants the close (or adjusted close) from a set of tickers. It would be nice if getSymbols or some other function could directly output an xts object with one column per symbol.
The text was updated successfully, but these errors were encountered: