Skip to content

Commit

Permalink
Update mfairGreedy.R
Browse files Browse the repository at this point in the history
  • Loading branch information
statwangz committed Sep 21, 2023
1 parent e5f686b commit e110f31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/mfairGreedy.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fitGreedy <- function(object, K_max = NULL,
# Check whether partially observed main data matrix and record the indices
if (object@Y_missing) {
if (object@Y_sparse) {
obs_indices <- as.matrix(summary(Y)[, c(1, 2)])
obs_indices <- as.matrix(summary(object@Y)[, c(1, 2)])
} else {
obs_indices <- !is.na(object@Y)
}
Expand Down

0 comments on commit e110f31

Please sign in to comment.