Import multiple excel sheets into in R Last Updated : 17 Jun, 2021 Comments Improve Suggest changes Like Article Like Report In this article, we are going to see how to import multiple Excel sheets into the R language. Excel provides us with multiple worksheets. For example, in the below Excel workbook StudentData, we have two worksheets - sheet 1 is Student Details and sheet 2 is Subject Details. For importing multiple Excel sheets into R, we have to, first install a package in R which is known as readxl. After successfully installing the package, we have to load the package using the library function is R. install.packages('readxl') Once we have completely installed and loaded the package in RStudio, the next job is to import the excel workbook and check the number of sheet it contains. We can do this using the excel_sheets function. R library("read_excel") # Importing the excel workbook for # checking the number of sheets it contains excel_sheets("StudentData.xlsx") Output: 'StudentDetails' 'SubjectDetails' We have an Excel file named as "StudentData" and we have already saved it in our working directory. It contains two sheets named StudentDetails and SubjectDetails. We have a function in R called read_excel() which we will use to import specific sheet into R. If no argument is specified, then the read_excel() will by default import the first Excel sheet. Syntax: read_excel(arg) Code: R # Importing specific sheets into R using the read_excel() StudentDet<-read_excel("StudentData.xlsx", sheet = 1) StudentDet<-read_excel("StudentData.xlsx", sheet = "StudentDetails") SubjectDet<-read_excel("StudentData.xlsx", sheet = "SubjectDetails") # For viewing the details of sheet 1 head(StudentDet) # For viewing the details of sheet 2 head(SubjectDet) Output: Comment More infoAdvertise with us Next Article Import multiple excel sheets into in R M mishrapratikshya12 Follow Improve Article Tags : R Language R-Excel Similar Reads Export Dataframes to Multiple Excel Sheets in R An excel workbook is used to contain tabular information stored within a cell-like structure. Every excel workbook in R contains multiple sheets to contain the data belonging to the same domain information. The excel sheet can contain columns belonging to different data types. The Excel files can be 5 min read How to read multiple Excel files in R In this article, we will discuss how to merge multiple Excel files in the R programming language. Modules Used:dplyr: The dplyr package in R is a structure of data manipulation that provides a uniform set of verbs, helping to resolve the most frequent data manipulation hurdles.plyr: The âplyrâ packa 2 min read Combine Multiple Excel Worksheets into Single Dataframe in R In this article, we will discuss how to combine multiple excel worksheets into a single dataframe in R Programming Language. The below XLSX file "gfg.xlsx" has been used for all the different approaches. Method 1: Using readxl package The inbuilt setwd() method is used to set the working directory 4 min read Import and Merge Multiple CSV Files in R In this article, we will be looking at the approach to merge multiple CSV files in the R programming language. Modules Useddplyr: This is a structure of data manipulation that provides a uniform set of verbs, helping to resolve the most frequent data manipulation hurdles.plyr: plyr is an R package t 2 min read How to Export Multiple Dataframes to Different Excel Worksheets in R In this article, we are going to see how to export multiple dataframe to different Excel Worksheets in R Programming Language. We will be using the xlsx module. The xlsx library provides R functions to read/write/format Excel files and their formats. The xlsx package gives programmatic control of Ex 4 min read Like