EdwinTh / padr

Padding of missing records in time series
https://edwinth.github.io/padr/
Other
132 stars 12 forks source link

Speed up `get_interval` #39

Closed EdwinTh closed 7 years ago

EdwinTh commented 7 years ago

Function is slow because of as.character.Date() is slow. Easiest solution is see if there is a workaround, so we can keep determining the intervals on characters. Worst case, we need to find a different way to determine the interval, maybe converting to integer and do something on the differences between them. Would require a lot of thinking.

EdwinTh commented 7 years ago

Replaced as.character by format