Comments (5)
Thanks for the feedback @DavisVaughan ! I like your suggestion so I think I'll go with it. I'm working out the CI kinks in #14 on the remove-dplyr
branch.
from fredr.
If you prefer to stay in the zoo/xts
context for the data you return, it's probably better to lose dplyr
. Personally, I prefer to work in the tidyverse
so I like my dates as a data column so dplyr
is always loaded. lubridate
is a great replacement for xts
but I realize it's something of a religious issue.
from fredr.
I use dplyr
almost exclusively for the consistent coercion rules of bind_rows
. I also find myself most often working with tidyverse
loaded but I envisioned fredr
as a simple tool to pull in time series objects, letting the user decide how they wanted to convert them after. Note that tidyquant
is a more comprehensive solution to unifying time series data and tidyverse
principles. That being said, I'm not overly attached to returning time series observations as either xts
objects or as data frames / tibble
s. I think I will leave the behavior as it it for now and change it if there is a more pressing need in the future.
from fredr.
Just looking through some of fredr
. Like this alot! In riingo
, an R interface to Tiingo stock data, I get around the need for dplyr::bind_rows()
by doing (in the context of fredr_series()
):
tibble::as.tibble(jsonlite::fromJSON(httr::content(resp, "text"))$seriess)
Perhaps you could use that?
from fredr.
Fixed with #14. Note that fredr_series
will now return a tibble instead of a time series object.
from fredr.
Related Issues (20)
- Unable to Install (Broken Dependency?) HOT 2
- Support for FRED Maps HOT 3
- Option to select Seasonally Adjusted Observation HOT 1
- upper bound too low for limit in fredr_category_series() HOT 3
- Pagination HOT 1
- Encoding error with fredr_series_observations HOT 11
- Better test environment for API requests HOT 3
- CRAN issues HOT 25
- Removed from CRAN? HOT 2
- Fredr can't return a legit series_id HOT 3
- Getting fredr back on CRAN HOT 24
- Release fredr 2.0.0
- way to traverse category trees? HOT 4
- This likely isn't an issue with your code, but something to be wary of HOT 3
- Trouble downloading multiple FRED series HOT 5
- fredr() and parameter vintage_dates HOT 5
- M2 not FedFunds
- Release fredr 2.1.0 HOT 1
- fredr appears to be completely broken on my R setup HOT 6
- Capture multiple series simultaneously? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fredr.