R/initiate_group.R

Defines functions initiate_group

Documented in initiate_group

#' Internal to simulate_non_independence and simulate_non_independence2
#'
#' Creates string vector for all individuals in a group
#'
#' @param x the group number
#' @param n the number of individuals in the group to generate
#' @keywords internal
initiate_group <- function(x, n){
  paste(unlist(paste0(x, "_", 1:n)), collapse = "-")
}
gavincotterill/modulr documentation built on Nov. 30, 2022, 11:15 p.m.