I would appreciate if someone could help me in push_back a new component into DatetimeVector
. A DatetimeVector
only has begin, end, getDatetimes<
I'd say don't. For multiple reasons:
SEXP
which requires contiguous memory. So adding a single element always requires copying all--expensive.DatetimeVector
class is pretty bad. I wrote it many years ago to pass data to QuantLib.NumericVector
classes to POSIXct
-- see eg here in Rblpapi