Skip to content

Commit

Permalink
Correct coalesce call
Browse files Browse the repository at this point in the history
  • Loading branch information
solivella committed May 24, 2024
1 parent 4519f6c commit b5381d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/race_prediction_funs.R
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ predict_race_new <- function(

if(impute.missing){
for(i in ncol(preds)){
preds[, i] <- dplyr::coalesce(df[, i], race.margin[i])
preds[, i] <- dplyr::coalesce(preds[, i], race.margin[i])
}
}
## Normalize (recycle marginal)
Expand Down

0 comments on commit b5381d9

Please sign in to comment.