Skip to content

Commit

Permalink
Merge pull request #121 from pharmaverse/120_cm_CMENRTPT
Browse files Browse the repository at this point in the history
Closes #120 add CMENRTPT
  • Loading branch information
manciniedoardo authored Oct 16, 2024
2 parents 041bc35 + b4023f1 commit 607d7be
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

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

- Add `CMENRTPT` to `cm`. (#120)

<details>
<summary>Developer Notes</summary>

Expand Down
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.
2 changes: 1 addition & 1 deletion man/cm.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 607d7be

Please sign in to comment.