-
Notifications
You must be signed in to change notification settings - Fork 75
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
return a named list for single security #281
Comments
I disagree, but am not opposed to adding an option to do what you want. My thoughts are if you are requesting one security only, it’s an interactive use case, and is inconvenient to have to access the first element of a one element list. However, it should be trivial to test an option to always return a list. |
Also, changing interfaces that many years in generally needs a really good reason. |
I understand about the interface change. I am having to modify the package or write a wrapper function around it, which decreases readability (when sharing). |
Hi, I actually double checked and this is how it was done in version 3.6.2. In that version, Rblpapi version 0.3.6.2 using Blpapi headers 3.8.18.1 and run-time 3.8.18.1.
$ |
Hi,
bdh (and the others probably) returns a dataframe when using 1 security and a named list when using more than 1. This is not very consistent and it would be better if it always returned a named list of dataframes with the name = the security even with 1 security. This would help when using bind_rows for example. It would avoid us having to make special cases for 1 security and creating the list manually.
The text was updated successfully, but these errors were encountered: