| 188 | } |
| 189 | |
| 190 | LazyFrameIteratorT assertColumnDefined(LazyFrameT& lazy_frame, BloombergLP::blpapi::Element& e, size_t n) { |
| 191 | LazyFrameIteratorT iter = lazy_frame.find(e.name().string()); |
| 192 | |
| 193 | // insert only if not present |
| 194 | if (iter == lazy_frame.end()) { |
| 195 | Rcpp::RObject column = allocateDataFrameColumn(e.datatype(), n); |
| 196 | iter = lazy_frame.insert(lazy_frame.begin(),std::pair<std::string,Rcpp::RObject>(e.name().string(),column)); |
| 197 | } |
| 198 | |
| 199 | return iter; |
| 200 | } |
| 201 | |
| 202 | Rcpp::List bulkArrayToDf(Element& fieldData) { |
| 203 | if(fieldData.numValues()==0) { |
no test coverage detected