R/progressBar.R

Defines functions progressBar

#' Internal function to generate a progress bar for the bootstrap option
#' @param int integer
#' @param tot tot
#' @returns No returns, just prints dots for each bootstrap replication
#' @noRd
progressBar <- function(
    int,
    tot
    ) {
    cat(".")
    if (int %% 5 == 0) {
        cat(sprintf("%.0f", int))
    }
    if (int %% 70 == 0) {
        cat("\n")
    }
    if (int == tot) {
        cat("\n")
    }
}

Try the DIDmultiplegtDYN package in your browser

Any scripts or data that you put into this service are public.

DIDmultiplegtDYN documentation built on Sept. 22, 2024, 1:06 a.m.