Skip to content

Commit

Permalink
add CMENRTPT
Browse files Browse the repository at this point in the history
  • Loading branch information
kaz462 committed Sep 6, 2024
1 parent 61a201e commit 5a9148f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion data-raw/cm.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
# Load libraries -----
library(haven)
library(admiral)
library(dplyr)

# Create cm ----
raw_cm <- read_xpt("https://github.com/cdisc-org/sdtm-adam-pilot-project/blob/master/updated-pilot-submission-package/900172/m5/datasets/cdiscpilot01/tabulations/sdtm/cm.xpt?raw=true") # nolint
cm <- convert_blanks_to_na(raw_cm)
cm <- convert_blanks_to_na(raw_cm) %>%
mutate(CMENRTPT = if_else(is.na(CMENDTC), "ONGOING", NA_character_))

# Label dataset ----
attr(cm, "label") <- "Concomitant Medications"
Expand Down
Binary file modified data/cm.rda
Binary file not shown.

0 comments on commit 5a9148f

Please sign in to comment.