Skip to content

Commit 607d7be

Browse files
Merge pull request #121 from pharmaverse/120_cm_CMENRTPT
Closes #120 add CMENRTPT
2 parents 041bc35 + b4023f1 commit 607d7be

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
- Pediatrics data for anthropometric measures (`dm_peds` and `vs_peds`) was added (#88).
66

7+
- Add `CMENRTPT` to `cm`. (#120)
8+
79
<details>
810
<summary>Developer Notes</summary>
911

data-raw/cm.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
# Load libraries -----
55
library(haven)
66
library(admiral)
7+
library(dplyr)
78

89
# Create cm ----
910
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
10-
cm <- convert_blanks_to_na(raw_cm)
11+
cm <- convert_blanks_to_na(raw_cm) %>%
12+
mutate(CMENRTPT = if_else(is.na(CMENDTC), "ONGOING", NA_character_))
1113

1214
# Label dataset ----
1315
attr(cm, "label") <- "Concomitant Medications"

data/cm.rda

401 Bytes
Binary file not shown.

man/cm.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)