Skip to content

Commit

Permalink
don't reduce matrix to vector
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Jul 30, 2024
1 parent 161da12 commit f1fa3df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/scova.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ scova <- R6::R6Class(
# Identify columns with no variance and remove them
variance_per_column <- apply(mm, 2, var)
relevant_columns <- which(variance_per_column != 0)
mm_reduced <- mm[, relevant_columns]
mm_reduced <- mm[, relevant_columns, drop = FALSE]
private$design_matrix <- mm_reduced
},
build_covariate_lookup_table = function() {
Expand Down

0 comments on commit f1fa3df

Please sign in to comment.