Skip to content
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

Error fetching TR series #13

Closed
wilsonfreitas opened this issue Dec 12, 2017 · 1 comment
Closed

Error fetching TR series #13

wilsonfreitas opened this issue Dec 12, 2017 · 1 comment
Labels

Comments

@wilsonfreitas
Copy link
Owner

The 226 series refers to TR. This series has different layout and an error is being returned while fetching its data.

> rbcb::get_series(226, start_date = "2016-12-12", end_date = "2017-01-31")
Error in `[<-.data.frame`(`*tmp*`, del, value = NULL) : 
  missing values are not allowed in subscripted assignments of data frames
In addition: Warning message:
In eval(substitute(expr), e) : NAs introduced by coercion

This series has a different JSON.
The field datafim.

> rbcb::get_series(226, last = 5, as = "text")
[1] "[{\"data\":\"04/12/2017\",\"datafim\":\"04/01/2018\",\"valor\":\"0.0000\"},{\"data\":\"05/12/2017\",\"datafim\":\"05/01/2018\",\"valor\":\"0.0000\"},{\"data\":\"06/12/2017\",\"datafim\":\"06/01/2018\",\"valor\":\"0.0000\"},{\"data\":\"07/12/2017\",\"datafim\":\"07/01/2018\",\"valor\":\"0.0000\"},{\"data\":\"08/12/2017\",\"datafim\":\"08/01/2018\",\"valor\":\"0.0000\"}]"
@wilsonfreitas
Copy link
Owner Author

Solved 2e627fe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant