R/!archived/pj_bs_sample.R

Defines functions pj_bs_sample

# Used only within pj_bs()
pj_bs_sample <- function(.sample, .bs_data, .diff = NULL){
  
  sample <- NULL
  
  d <- .bs_data %>% 
    dplyr::filter(sample == .sample)
  
  if (is.null(.diff)){
    
    pj(d) %>% 
      dplyr::mutate(sample = .sample)
    
  } else{
    
    pj_diff(d, .diff) %>% 
      dplyr::mutate(sample = .sample)
    
    
  }
  
  
}

Try the projoint package in your browser

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

projoint documentation built on Feb. 16, 2026, 5:10 p.m.