inst/shiny/LCBCshiny/subscripts/df2list.R

df2list = function(DATA, TXT){
  
  LIST = apply(DATA, 1, 
               function(x){ 
                 x[grep(paste(TXT, collapse="|"), names(x))] %>% 
                   as.data.frame()
                 }
               )
  
  return(LIST)
}
LCBC-UiO/MOAS documentation built on Aug. 28, 2023, 3:29 a.m.