R/.dataImport.R

Defines functions .dataImport

.dataImport <- function(vecExcel) {
  
  require(openxlsx)
  require(purrr)
  
  dl <- lapply(1:length(vecExcel), function(i) {
    
    lapply(vecExcel[[i]] %>% getSheetNames(), function(x) {
      
      read.xlsx(vecExcel[[i]], x) %>%
        as_tibble
      
    })
    
  }) %>%
    
    flatten()
  
  return(dl)
  
}
avisserquinn/OSMtidy documentation built on June 3, 2023, 7:30 a.m.