| 249 | } |
| 250 | |
| 251 | Rcpp::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 | |
| 259 | std::string vectorToCSVString(const std::vector<std::string>& vec) { |
| 260 | if(vec.empty()) { |
no outgoing calls
no test coverage detected