Joshua Ulrich

Results 260 comments of Joshua Ulrich

Here's a first draft of printing zoo vectors. ```diff diff --git a/pkg/zoo/R/zoo.R b/pkg/zoo/R/zoo.R index 39c554b..2ae8224 100644 --- a/pkg/zoo/R/zoo.R +++ b/pkg/zoo/R/zoo.R @@ -71,7 +71,39 @@ print.zoo

> Thanks for having a go at this Josh! Happy to! I thought it was most efficient to use my knowledge of doing this with `print.xts()` to give you something...

This was fixed in d2ab0f799cf0bf9fdad240c6522214fd9db6b19c, as part of #248. It's now well under 100ms for me. ```r R$ library(xts) x

We can't simply use `plot.window(..., log = "y")` because the range for the raw data passed in may include values

Hmm, guess that wasn't clear. I'm referring to when the raw data has negative values. And that causes `plot.window(..., log = "y")` to error. So we can't just add `log...

The description in the documentation is wrong. I'll fix. Thanks for the report!

Closing this as completed (based on the previous comment)

Thanks for giving this a try @babbage9010! I just verified this works with the development version of the PerformanceAnalytics package if you set `log = TRUE` **and** `wealth.index = TRUE`....

It fails for me even with the `as.zoo()`. ```r SPY.Close$dn3

For what it's worth, you can get data from FRED in an xts object using quantmod. ```r data