Import multiple sheets from excel spreadsheet into r
问题 I want to import multiple sheets, selected by a common string in the sheet name, from a single .xlsx file and concatenate them into single data frame. For example, if I have an excel file ('data.xlsx') with worksheets named samples1, samples2, samples3, controls1, controls2, controls3. I want to make a list of the worksheet names, such as: sheet_list <- lapply(excel_sheets('data.xlsx'), read_excel, path = 'data.xlsx') Then, I want to import all sheets that contain 'samples' in the name and