Get the App
SLTechnology News&Howtos  ›  Development  › 

How to read Excel files by read.xlsx

Shulou Source: shulou.com Published: 2022-06-01 12:38:25 09月28日 Update

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!

Tags: Documents articles at the same time success two value interest content data more friends knowledge editing industry information information channels process channels preparation reference Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft macOS Linux Docker Xiaomi