Skip to content

Commit 445f31e

Browse files
committed
⚡ update functions
1 parent ce395cf commit 445f31e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

R/fct_meta.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150
#' @param max_samples Integer. Maximum number of resamples when `random = TRUE`. Must be positive. Default is 100.
151151
#' @param subpop Logical. If TRUE, will run meta-analyses with groups. Default is FALSE.
152152
#' @param trace Logical. If TRUE, prints progress messages. Default is FALSE.
153+
#' @param .iter_size Numeric. The size of each iteration step. Default is 2.
153154
#' @param .only_max_m Logical. If TRUE, will only run the maximum number of individuals. Default is FALSE.
154155
#' @param .lists A list containing already created meta inputs. Default is NULL.
155156
#'
@@ -170,6 +171,7 @@ run_meta_permutations <- function(rv,
170171
random = FALSE,
171172
max_samples = 100,
172173
trace = FALSE,
174+
.iter_size = 2,
173175
.only_max_m = FALSE,
174176
.lists = NULL) {
175177

@@ -263,7 +265,9 @@ run_meta_permutations <- function(rv,
263265
}
264266

265267
m_iter <- NULL
266-
m_iter <- .get_sequence(input[["All"]], grouped = subpop)
268+
m_iter <- .get_sequence(input[["All"]],
269+
.iter_size = .iter_size,
270+
grouped = subpop)
267271
if (.only_max_m) m_iter <- max(m_iter)
268272

269273
for (m in m_iter) {

0 commit comments

Comments
 (0)