Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Could you allow characters for `start.date` in `bdh()`? #266
library(Rblpapi) #> Warning: package 'Rblpapi' was built under R version 3.4.4 #> Rblpapi version 0.3.8 using Blpapi headers 18.104.22.168 and run-time 22.214.171.124. #> Please respect the Bloomberg licensing agreement and terms of service. blpConnect() security <- "CPI XYOY Index" field <- "PX_LAST" start_date <- "-11CY" cpi_xyoy_index <- bdh(security, field, start.date = start_date) #> Error: start.date must be a Date object con <- defaultConnection() res <- Rblpapi:::bdh_Impl( con, security, field, start_date_ = start_date, end_date_ = NULL, options_ = NULL, overrides_ = NULL, verbose = FALSE, identity_ = NULL, int_as_double = FALSE ) head(res[]) #> date PX_LAST #> 1 2006-12-31 2.6 #> 2 2007-01-31 2.7 #> 3 2007-02-28 2.7 #> 4 2007-03-31 2.5 #> 5 2007-04-30 2.3 #> 6 2007-05-31 2.2
Created on 2018-06-26 by the reprex package (v0.2.0).
Sorry on the delay. Won't be able to test easily as I can't install from github at work. But the change looks correct to me and as shown above it definitely works if you bypass