Skip to content

Commit

Permalink
Fixed bug with a single column dimension drops.
Browse files Browse the repository at this point in the history
  • Loading branch information
edsandorf committed Jun 9, 2023
1 parent acf907b commit 80f1bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/xj.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ define_base_x_j <- function(utility, design_candidate) {

# Subset to exclude base dummylevel
x_j <- lapply(x_j, function(x) {
x[, colnames(x) %in% extract_attribute_names(update_utility(utility))]
x[, colnames(x) %in% extract_attribute_names(update_utility(utility)), drop = FALSE]
})

return(x_j)
Expand Down

0 comments on commit 80f1bbd

Please sign in to comment.