Skip to content

Commit 20d84db

Browse files
committed
run styler
1 parent 5e59797 commit 20d84db

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

sdtm/vs.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ vs_temp <-
218218
id_vars = oak_id_vars()
219219
) %>%
220220
# Create VSSTRESC by converting VSORRES from F to C
221-
mutate(VSSTRESC = as.character(sprintf("%.2f", (as.numeric(VSORRES) - 32) * 5/9))) %>%
221+
mutate(VSSTRESC = as.character(sprintf("%.2f", (as.numeric(VSORRES) - 32) * 5 / 9))) %>%
222222
# Map VSSTRESU using hardcode_ct algorithm
223223
hardcode_ct(
224224
raw_dat = vs_raw,
@@ -400,8 +400,10 @@ vs <- vs %>%
400400
VSTPTREF = ifelse(is.na(VSPOS), NA, paste("PATIENT", VSPOS))
401401
) %>%
402402
arrange(USUBJID, VSTESTCD, as.numeric(VISITNUM), as.numeric(VSTPTNUM)) %>%
403-
derive_seq(tgt_var = "VSSEQ",
404-
rec_vars = c("USUBJID", "VSTESTCD")) %>%
403+
derive_seq(
404+
tgt_var = "VSSEQ",
405+
rec_vars = c("USUBJID", "VSTESTCD")
406+
) %>%
405407
derive_study_day(
406408
sdtm_in = .,
407409
dm_domain = dm,
@@ -410,4 +412,3 @@ vs <- vs %>%
410412
study_day_var = "VSDY"
411413
) %>%
412414
dplyr::select("STUDYID", "DOMAIN", "USUBJID", "VSSEQ", "VSTESTCD", "VSTEST", "VSPOS", "VSORRES", "VSORRESU", "VSSTRESC", "VSSTRESN", "VSSTRESU", "VSLOC", "VISITNUM", "VISIT", "VSDTC", "VSDY", "VSTPT", "VSTPTNUM", "VSELTM", "VSTPTREF")
413-

sdtm/vs.qmd

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ vs_temp <-
299299
id_vars = oak_id_vars()
300300
) %>%
301301
# Create VSSTRESC by converting VSORRES from F to C
302-
mutate(VSSTRESC = as.character(sprintf("%.2f", (as.numeric(VSORRES) - 32) * 5/9))) %>%
302+
mutate(VSSTRESC = as.character(sprintf("%.2f", (as.numeric(VSORRES) - 32) * 5 / 9))) %>%
303303
# Map VSSTRESU using hardcode_ct algorithm
304304
hardcode_ct(
305305
raw_dat = vs_raw,
@@ -494,8 +494,10 @@ vs <- vs %>%
494494
VSTPTREF = ifelse(is.na(VSPOS), NA, paste("PATIENT", VSPOS))
495495
) %>%
496496
arrange(USUBJID, VSTESTCD, as.numeric(VISITNUM), as.numeric(VSTPTNUM)) %>%
497-
derive_seq(tgt_var = "VSSEQ",
498-
rec_vars = c("USUBJID", "VSTESTCD")) %>%
497+
derive_seq(
498+
tgt_var = "VSSEQ",
499+
rec_vars = c("USUBJID", "VSTESTCD")
500+
) %>%
499501
derive_study_day(
500502
sdtm_in = .,
501503
dm_domain = dm,
@@ -512,4 +514,4 @@ print_df(vs)
512514

513515
## Add Labels and Attributes {#attributes}
514516

515-
Yet to be developed.
517+
Yet to be developed.

0 commit comments

Comments
 (0)