How to read Excel files by read.xlsx
This article mainly introduces read.xlsx how to read Excel files, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.
Using "xlxs" to read the contents of a real Excel file
Read Excel file
Install "xlsx" first (the installation process will also successfully install "xlsxjars", "rJava")
Install.packages ("xlsx") library ('xlsx') library (' xlsxjars') library ('rJava')
The prepared data file read.xls involves two sheet
> sheet1 = read.xlsx ("read.xls", 1) # # sheet corresponds to the first > sheet1 Samples Num1 A 12 B 23 C 3 > sheet2 = read.xlsx ("read.xls", 2) # # sheet corresponds to the second > sheet2 Samples Treat1 A 10d2 B 20d3 C 30d Thank you for reading this article carefully I hope the article "how to read Excel files from read.xlsx" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!