Skip to content

Commit

Permalink
er nå i kodeboken
Browse files Browse the repository at this point in the history
  • Loading branch information
skkrist committed Jan 16, 2024
1 parent 8ed8185 commit 4e8e027
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 57 deletions.
56 changes: 0 additions & 56 deletions R/getPrepData.R
Original file line number Diff line number Diff line change
Expand Up @@ -961,24 +961,6 @@ getBaseregProsFollowup1Data <- function(registryName,
ordered = TRUE),


eprom_status_txt = dplyr::case_when(

eprom_datagrunnlag_1aar %in% "ja" &
proms_status %in% 1 ~ "avventer svar",

eprom_datagrunnlag_1aar %in% "ja" &
proms_status %in% 2 ~ "utgaatt uten svar",

eprom_datagrunnlag_1aar %in% "ja" &
proms_status %in% 3 ~ "svar mottatt",

eprom_datagrunnlag_1aar %in% "ja" &
proms_status %in% 4 ~ "digitalt inaktiv",

eprom_datagrunnlag_1aar %in% "ja" &
is.na(eprom_sendt_1aar) ~ "sjekk utsending",

TRUE ~ NA_character_),

eprom_besvart = dplyr::case_when(
eprom_datagrunnlag_1aar %in% "ja" &
Expand Down Expand Up @@ -1248,26 +1230,6 @@ getBaseregProsFollowup0Data <- function(registryName,
"nei, eprom venter på utsendelse"),
ordered = TRUE),


eprom_status_txt = dplyr::case_when(

eprom_datagrunnlag_basis %in% "ja" &
proms_status %in% 1 ~ "avventer svar",

eprom_datagrunnlag_basis %in% "ja" &
proms_status %in% 2 ~ "utgaatt uten svar",

eprom_datagrunnlag_basis %in% "ja" &
proms_status %in% 3 ~ "svar mottatt",

eprom_datagrunnlag_basis %in% "ja" &
proms_status %in% 4 ~ "digitalt inaktiv",

eprom_datagrunnlag_basis %in% "ja" &
is.na(eprom_sendt_basis) ~ "sjekk utsending",

TRUE ~ NA_character_),

eprom_besvart = dplyr::case_when(
eprom_datagrunnlag_basis %in% "ja" &
proms_status %in% 3 ~ "besvart eprom basis",
Expand Down Expand Up @@ -1556,24 +1518,6 @@ getBaseregProsFollowup5Data <- function(registryName,
ordered = TRUE),


eprom_status_txt = dplyr::case_when(

eprom_datagrunnlag_5aar %in% "ja" &
proms_status %in% 1 ~ "avventer svar",

eprom_datagrunnlag_5aar %in% "ja" &
proms_status %in% 2 ~ "utgaatt uten svar",

eprom_datagrunnlag_5aar %in% "ja" &
proms_status %in% 3 ~ "svar mottatt",

eprom_datagrunnlag_5aar %in% "ja" &
proms_status %in% 4 ~ "digitalt inaktiv",

eprom_datagrunnlag_5aar %in% "ja" &
is.na(eprom_sendt_1aar) ~ "sjekk utsending",

TRUE ~ NA_character_),

eprom_besvart = dplyr::case_when(
eprom_datagrunnlag_5aar %in% "ja" &
Expand Down
2 changes: 1 addition & 1 deletion data-raw/kbd.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## code to prepare `kbd` dataset goes here

kbd <-read.csv(file = "data-raw/AblaNor_klokeboken_29.11.2023.csv", sep = ";")
kbd <-read.csv(file = "data-raw/ablanor_klokeboken_11.01.2024.csv", sep = ";")

usethis::use_data(kbd, overwrite = TRUE)
Binary file modified data/kbd.rda
Binary file not shown.

0 comments on commit 4e8e027

Please sign in to comment.