Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Need to update collect_title() function as it is not taking title 1 as "Summary of Treatment Compliance" from meta plan. Also I noticed that if I subset adex dataset to exclude NA records while merging with ADSL then step tbl <- outdata |> format_trt_compliance()
head(tbl$tbl) throws following error:Error in
[.data.frame
(within_tbl, , c(1, do.call(c, lapply(2:(1 + n_group + :undefined columns selected
4.
stop("undefined columns selected")
3.
[.data.frame
(within_tbl, , c(1, do.call(c, lapply(2:(1 + n_group +ifelse("total" %in% display_col, 1, 0)), function(x) {
c(x, x + n_group + ifelse("total" %in% display_col, 1, 0) +
within_tbl[, c(1, do.call(c, lapply(2:(1 + n_group + ifelse("total" %in%
display_col, 1, 0)), function(x) {
c(x, x + n_group + ifelse("total" %in% display_col, 1, 0) +
format_trt_compliance(outdata)
. Currently adsl has all records for 254 subjects though 2 subjects has NA in ADEX and these records are presented as "Missing" in final output.