Skip to content

Commit

Permalink
Merge pull request #87 from steno-aarhus/minor-fixes-to-fake-data
Browse files Browse the repository at this point in the history
  • Loading branch information
lwjohnst86 authored May 16, 2024
2 parents 375e652 + 9364062 commit 9fc81c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data-raw/simulate-data.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ create_fake_drug_name <- function(atc) {
}

to_wwyy <- function(x) {
format(lubridate::as_date(x), format = "%W%y")
paste0(lubridate::isoweek(lubridate::as_date(x)), stringr::str_sub(lubridate::isoyear(lubridate::as_date(x)), -2))
}

to_yyyymmdd <- function(x) {
Expand Down

0 comments on commit 9fc81c4

Please sign in to comment.