R/bootstrap_ReturnBootstrapData.R

Defines functions returnBootstrapData

returnBootstrapData <-
  function(
    model,
    bootstrap_,
    ...
  ){
    model$data %>%
      dplyr::right_join(
        (model$bootstrap.samples.df %>%
           dplyr::filter(bootstrap %in% bootstrap_)),
        by = model$sample) %>%
      data.table::data.table() %>%
      return()
  }
sysbiosig/SCRC documentation built on July 9, 2021, 9:22 p.m.