Skip to content

Commit

Permalink
Update mfairInitialization.R
Browse files Browse the repository at this point in the history
  • Loading branch information
statwangz committed Sep 19, 2023
1 parent 657de02 commit 4a5b74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/mfairInitialization.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ createMFAIR <- function(Y, X,
} # End

# Check whether to transfer Y to the sparse matrix mode
if (class(Y) == "dgCMatrix") { # Y is already in sparse mode
if ("dgCMatrix" %in% class(Y)) { # Y is already in sparse mode
Y_sparse <- TRUE
message("The main data matrix Y has been stored in the sparse mode!")
} else if (Y_sparse == TRUE) { # Y is not in sparse mode, but we want it to be
Expand Down

0 comments on commit 4a5b74e

Please sign in to comment.