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

FR: Rename on the go #6

Open
pank opened this issue Mar 27, 2018 · 1 comment
Open

FR: Rename on the go #6

pank opened this issue Mar 27, 2018 · 1 comment

Comments

@pank
Copy link

pank commented Mar 27, 2018

Hi,

pdfetch is a very nice and easy interface to access databases. Thank you.

It would be nice if one could rename series on the go. I.e. make this test pass.

x1 <- pdfetch_FRED(c(y="GDPC1", c="PCECC96"))
x2 <- setNames(pdfetch_FRED(c("GDPC1", "PCECC96")), c("y","c"))
all.equal(x1, x2)

Thanks,
Rasmus

@runkelcorey
Copy link

@pank the issue here is that pdfetch returns an xts object. Are you asking @abielr to add functionality to return other classes or to replace xts with another class (which seems unlikely)? For your issue, you could just convert to another class, such as data.frame.

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

No branches or pull requests

2 participants