Skip to content

Commit c4e2872

Browse files
Zülal BekerecioğluZülal Bekerecioğlu
authored andcommitted
Update files
2 parents 03ca1cd + e35a0ae commit c4e2872

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

R/dateDS.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ dateDS <- function(x=NULL, type=NULL,
165165

166166
# inputs[[1]] = start date, inputs[[2]] = end date
167167
units <- list(
168-
years = lubridate::years(1),
169-
months = lubridate::months(1),
170-
days = lubridate::days(1)
168+
years = lubridate::period(years = 1),
169+
months = lubridate::period(months = 1),
170+
days = lubridate::period(days = 1)
171171
)
172172

173173
result <- lubridate::interval(inputs[[1]], inputs[[2]]) %/% units[[unit]]

0 commit comments

Comments
 (0)