-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* #2247 - added `relationship` argument to `create_single_dose_dataset()`. * #2247 - Update `derive_vars_merged()` function with relationship argument. * #2247 - Update `create_single_dose_dataset()` according to feedback. Set `relationship = many-to-one`. * #2247 - add in assertion to check new `relationship` argument contains only the options allowed. * #2247 - Update `create_single_dose_dataset()` to error if there are duplicates in the `lookup_table` and create associated test. * #2247 - Update `derive_vars_transposed()` with relationship argument. * #2247 - Update NEWS.md, running `styler::style_pkg()`, `lintr::lint_package()` * #2247 - Update documentation to ensure URLs are inserted as links as opposed to plain text. * #2247 - Update to use `signal_duplicate_records()` as recommended by feedback. * #2247 - Revert unintended changes to `test-derive_var_atoxgr.R` * #2247 - Update `derive_vars_merged()` and `derive_vars_transposed()` to only allow one-to-one and many-to-one relationship values according to feedback. * #2247 - Update according to review comment. Catch the dplyr relationship error in `derive_merged.R`, `derive_vars_transposed.R`. * #2247 - Update documentation for `get_hori_data()` due to misaligned text. * #2247 - Running final devtools checks. * Update R/derive_merged.R Apply requested change. Co-authored-by: Stefan Bundfuss <80953585+bundfussr@users.noreply.github.com> * #2247 - Update functions to take dplyr error and replace argument names with parent function argument names. * #2274 - Forgot to remove some dummy testing code! Have now removed. * #2247 - Re-run devtools checks. * docs: #2247 clarify arguments; tests: snapshot of my life * chore: #2247 lintr * tests: #2247 new snapshot * chore: #2247 that lint life --------- Co-authored-by: Ben Straub <ben.x.straub@gsk.com> Co-authored-by: Stefan Bundfuss <80953585+bundfussr@users.noreply.github.com>
- Loading branch information
1 parent
d93f97b
commit d20071d
Showing
14 changed files
with
317 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# derive_vars_transposed Test 3: filtering the merge dataset works | ||
with relationship 'many-to-one' | ||
|
||
Code | ||
derive_vars_transposed(dataset, dataset_merge, by_vars = exprs(USUBJID), | ||
key_var = TESTCD, value_var = VALUE, filter = TESTCD == "T01", relationship = "many-to-one") | ||
Output | ||
# A tibble: 3 x 3 | ||
USUBJID VAR1 T01 | ||
<chr> <dbl> <dbl> | ||
1 P01 3 31 | ||
2 P02 31 3 | ||
3 P03 42 NA | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.