Open michael-dewar opened 1 year ago
If I add a date to a period with length zero I get an error.
as.Date("1899/12/31") + lubridate::days(numeric())
My use case is that I must mutate a tibble that sometimes has zero rows. I would expect to get back a tibble with zero rows. Instead, the following also gives me an error.
tibble::tibble(num_days = numeric()) %>% dplyr::mutate(my_date = lubridate::days(num_days) + as.Date("1899/12/31"))
If I add a date to a period with length zero I get an error.
My use case is that I must mutate a tibble that sometimes has zero rows. I would expect to get back a tibble with zero rows. Instead, the following also gives me an error.