Return a new vector without the elements associated with the given indices.
The indices are expected to be sorted or partially sorted:
sort them completely and then take advantage of that.
This avoids random indexing-access the vector,
which can reduce cache misses and the number of comparisons.
This is used for removing bad datetimes and anomalies.
Set to NAN the elements of the given vector at the given indices.
The indices are expected to be sorted or partially sorted:
sort them completely and then take advantage of that.
This avoids random indexing-access the vector,
which can reduce cache misses and the number of comparisons.
This is used for removing bad datetimes and anomalies.
If longer than one week, keep year, month and day, drop hours;
if not, but longer than one day, add hours.
Otherwise, shorter than one day, keep also minutes.