22 #ifndef Rcpp__newDateVector_h
23 #define Rcpp__newDateVector_h
31 template <
int RTYPE,
bool NA,
typename VEC>
40 size_t n = this->
size();
41 std::vector<Date> v(n);
42 for (
size_t i=0; i<n; i++)
61 Rf_setAttrib(*
this, R_ClassSymbol, dateclass);
67 for (
size_t i=0; i<n; i++) {
69 if ((i+1) % 8 == 0) os <<
"\n";
std::string format(const char *fmt="%Y-%m-%d") const
Vector & operator=(const Vector &rhs)
newDateVector(const VectorBase< RTYPE, NA, VEC > &vec)
newDateVector & operator=(const newDateVector &rhs)
std::vector< Date > getDates() const
friend std::ostream & operator<<(std::ostream &s, const newDateVector d)
std::ostream & operator<<(std::ostream &os, const Date d)