Skip to content

Commit

Permalink
Update rank_ANOVA.R
Browse files Browse the repository at this point in the history
  • Loading branch information
mattansb committed Jul 21, 2024
1 parent 5adb681 commit 59d6143
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/rank_ANOVA.R
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,10 @@ kendalls_w <- function(x, groups, blocks, data = NULL,
boot_fun <- function(.data, .i) {
split(.data$x, .data$groups) <-
lapply(split(.data$x, .data$groups),
sample,
replace = TRUE
function(v) {
if (length(v) < 2L) return(v)
sample(v, size = length(v), replace = TRUE)
}
)
foo_es(.data)
}
Expand Down

0 comments on commit 59d6143

Please sign in to comment.