Skip to content

Commit a899188

Browse files
committed
doc: add comments
1 parent bba711e commit a899188

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

R/check_enough_data.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,14 @@ check_enough_data_core <- function(epi_df, step_obj, col_names, train_or_predict
160160
),
161161
.groups = "drop"
162162
) %>%
163+
# Aggregate across keys (if present)
163164
summarise(across(all_of(.env$col_names), any), .groups = "drop") %>%
164165
unlist() %>%
165166
names(.)[.]
166167

167-
# if none of the single columns have enough data, that means its the combination of all of them
168+
# Either all columns have enough data, in which case this message won't be
169+
# sent later or none of the single columns have enough data, that means its
170+
# the combination of all of them.
168171
if (length(cols_not_enough_data) == 0) {
169172
cols_not_enough_data <-
170173
glue::glue("no single column, but the combination of {paste0(col_names, collapse = ', ')}")

0 commit comments

Comments
 (0)