EdwinTh / padr

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

thicken drops data.frame when return is single column. #76

Closed EdwinTh closed 3 years ago

EdwinTh commented 4 years ago

When we use drop = TRUE and the original df has only the datetime column, it should return a one-column df, but it returns a vector.

x <- data.frame(dt = lubridate::ymd_hms('20171021 160000',
                                        '20171021 163100'))
thicken(x, interval = "hour", drop = TRUE)