Question: how to import an excel into r?
Answer: Step 1: Install the readxl package. In the R Console, type the following command to install the readxl package: install.packages("readxl") ... 
Step 2: Prepare your Excel File. Suppose that you have an Excel file with some data about products: ... 
Step 3: Import the Excel file into R.