You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been working with your excellent package, Rblpapi.
I have a couple of questions:
• I primarily work with economic data and find that for some series the dates don’t line up with the last calendar day of the month, to enable easy merging with other datasets. I have tried setting include.non.trading.days = TRUE but that does not seem to work. I have managed to fudge around this (see code below) but wondered whether there was something I could include in the bdh function, the equivalent of indexAt = ‘lastof’, that could make this easier?
• If setting a lower frequency of data, eg. Daily or weekly to quarterly, is there a way to pull the average of the quarter rather than automatically pulling the close price? I basically want to do the Excel equivalent of setting Period = CQ and Quote = A but can’t seem to make it work in R.
I essentially want to end up with an xts object, timestamped on the last calendar day of the quarter, with quarterly data (averaged over the quarter rather than the closing value)... Any direction would be greatly appreciated. Thank you!
Hello,
I have been working with your excellent package, Rblpapi.
I have a couple of questions:
• I primarily work with economic data and find that for some series the dates don’t line up with the last calendar day of the month, to enable easy merging with other datasets. I have tried setting include.non.trading.days = TRUE but that does not seem to work. I have managed to fudge around this (see code below) but wondered whether there was something I could include in the bdh function, the equivalent of indexAt = ‘lastof’, that could make this easier?
• If setting a lower frequency of data, eg. Daily or weekly to quarterly, is there a way to pull the average of the quarter rather than automatically pulling the close price? I basically want to do the Excel equivalent of setting Period = CQ and Quote = A but can’t seem to make it work in R.
I essentially want to end up with an xts object, timestamped on the last calendar day of the quarter, with quarterly data (averaged over the quarter rather than the closing value)... Any direction would be greatly appreciated. Thank you!
The text was updated successfully, but these errors were encountered: