Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
edelarua committed Sep 22, 2023
1 parent 3cf1df3 commit 8901c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/arm_ref_comp.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ arm_ref_comp_observer <- function(session,
teal::validate_has_elements(arm, "Treatment variable is empty.")

arm_levels <- if (is.factor(arm)) {
intersect(levels(arm), unique(arm))
levels(droplevels(arm))
} else {
unique(arm)
}
Expand Down

0 comments on commit 8901c09

Please sign in to comment.