inst/benchmarks/isoweek.R

microbenchmark::microbenchmark(
  lubridate::isoweek("2019-01-01"),
  data.table::isoweek("2019-01-01"),
  format.Date("2019-01-01", "%V"),
  ISOweek::ISOweek("2019-01-01"),
  times = 100
)

microbenchmark::microbenchmark(
  lubridate::isoyear("2019-01-01"),
  format.Date("2019-01-01", "%G"),
  times = 100
)
folkehelseinstituttet/fd documentation built on March 3, 2020, 12:23 p.m.