MCPcopy Create free account
hub / github.com/Rblp/Rblpapi / createPOSIXtVector

Function createPOSIXtVector

src/blpapi_utils.cpp:251–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251Rcpp::NumericVector createPOSIXtVector(const std::vector<double> & ticks,
252 const std::string tz) {
253 Rcpp::NumericVector pt(ticks.begin(), ticks.end());
254 pt.attr("class") = Rcpp::CharacterVector::create("POSIXct", "POSIXt");
255 pt.attr("tzone") = tz;
256 return pt;
257}
258
259std::string vectorToCSVString(const std::vector<std::string>& vec) {
260 if(vec.empty()) {

Callers 2

getTicks_ImplFunction · 0.85
getBars_ImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected