Skip to content

Commit 7a45715

Browse files
committed
Merge branch 'issue306_fix_radqlqc' of github.com:insightsengineering/random.cdisc.data into issue306_fix_radqlqc
2 parents 3e54719 + a6d0e69 commit 7a45715

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

R/radqlqc.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ get_ex028 <- function(adsl) {
709709
QSREASND
710710
) %>%
711711
distinct(),
712-
by = c("STUDYID","USUBJID", "VISIT", "VISITNUM")
712+
by = c("STUDYID", "USUBJID", "VISIT", "VISITNUM")
713713
)
714714
# evaluate each combination to see if a subject is expected to complete a
715715
# questionnaire at the specific visit or not.
@@ -761,7 +761,7 @@ get_ex028 <- function(adsl) {
761761
by = c("PARAMCD")
762762
)
763763

764-
return (subj_vis_param4)
764+
return(subj_vis_param4)
765765
}
766766

767767
#' @describeIn h_adqlqc Scale calculation for ADQLQC data
@@ -929,8 +929,9 @@ calc_scales <- function(adqlqc1, ex028) {
929929
unique_avisit <- unique(id_data$AVISIT)
930930
for (visit in unique_avisit) {
931931
if (is.na(visit)) {
932-
if(ex028$AVAL == 1)
933-
next
932+
if (ex028$AVAL == 1) {
933+
next
934+
}
934935
}
935936
id_data_at_visit <- id_data[id_data$AVISIT == visit, ]
936937

man/h_adqlqc.Rd

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)