Skip to content

Commit

Permalink
only consider colnames in condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mnwright committed Feb 15, 2024
1 parent b14e097 commit ff122ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -575,8 +575,8 @@ prep_cond <- function(condition, params, row_mode) {
n_row_cond <- nrow(condition)
meta <- params$meta
cat <- params$cat
cnt_cols <-meta[family != "multinom", variable]
cat_cols <-meta[family == "multinom", variable]
cnt_cols <- intersect(meta[family != "multinom", variable], colnames(condition))
cat_cols <- intersect(meta[family == "multinom", variable], colnames(condition))

cond <- copy(condition)
cond <- setDT(cond)
Expand Down

0 comments on commit ff122ce

Please sign in to comment.