padr
padr copied to clipboard
Padding of missing records in time series
I was profiling some code that calls `padr::pad()` and found that `span_all_groups()` was using a significant chunk of the total time. This proposed change converts `span_all_groups()` to use `purrr::map2` and...
Is this officially supported or just an unintended bonus? ``` require(padr) #> Loading required package: padr require(tidyverse) #> Loading required package: tidyverse df = tibble(day = as.Date(c('2022-05-02', '2022-05-09', '2022-05-23', '2022-05-04',...
When doing grouped padding we can only supply a universal start and end value. When you want to give each group a custom value you have to do some wrapper...
See #82, the docs should say a character should be used and we should throw an informative error.
This is a reminder that lintr was removed for the patch release 0.5.1. There was no time (because Coron) to do a full lintr revision and patch needed to go...
Hi! Cleaning up some internal packages and trying to get rid of some lifecycle warnings, noticed that `padr::pad()` generates one now as follows: ```r options(lifecycle_verbosity = "error") packageVersion("dplyr") #> [1]...
resolves #90
Hi, all. I may have found a bug in thicken() when thickening time series by day across a DST boundary. When thickening by day, if a spring-forward series being thickened...
`pad()` should support `lubridate::duration` objects as a possible input for the `interval` argument. ```r simple_df Error in strsplit(interval_string, " ") : non-character argument workaround= paste(as.numeric(as.duration("day")), "sec") pad(simple_df, interval = workaround)...