Skip to content

Commit

Permalink
address styler
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelos Zhu committed Sep 28, 2023
1 parent 179283d commit 48861ae
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/testthat/test-derive_merged.R
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,14 @@ test_that("derive_vars_merged Test 3: merge last value and flag matched by group
## Test 4: merge last value and flag matched by groups ----
test_that("derive_vars_merged Test 4: merge last value and flag matched by groups", {
actual <- derive_vars_merged(adsl,
dataset_add = advs,
order = exprs(AVAL),
by_vars = exprs(STUDYID, USUBJID),
new_vars = exprs(WEIGHTBL = AVAL),
mode = "last",
exist_flag = matched,
true_value = "Y",
false_value = "N"
dataset_add = advs,
order = exprs(AVAL),
by_vars = exprs(STUDYID, USUBJID),
new_vars = exprs(WEIGHTBL = AVAL),
mode = "last",
exist_flag = matched,
true_value = "Y",
false_value = "N"
)
expected <- adsl %>% mutate(
WEIGHTBL = c(68, 88, 55, NA),
Expand Down

0 comments on commit 48861ae

Please sign in to comment.