Skip to content

Commit

Permalink
bugfix in hurdle_impute()
Browse files Browse the repository at this point in the history
  • Loading branch information
ThierryO committed Sep 12, 2024
1 parent 3c8eb77 commit 6135636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/hurdle_impute.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ hurdle_impute <- function(presence, count) {
ncol = ncol(count_resp)
)
ren_count <- count@Extra[, extra_count[extra_count %in% extra_presence]]
colnames(ren_count) <- sprintf("count_", colnames(ren_count))
colnames(ren_count) <- sprintf("count_%s", colnames(ren_count))

Check warning on line 84 in R/hurdle_impute.R

View check run for this annotation

Codecov / codecov/patch

R/hurdle_impute.R#L84

Added line #L84 was not covered by tests
cv_extra <- cbind(
count@Extra[, common],
count@Extra[, extra_count[!extra_count %in% extra_presence]], ren_count
Expand Down

0 comments on commit 6135636

Please sign in to comment.