To access an Excel file in R, you can use the readxl
package. Here is an example code that shows how to import an Excel file into R:
main.r606 chars17 lines
You can change the input and output arguments of read_excel()
function according to your needs. For example, you can specify the sheet you want to read with the sheet
argument, or you can skip rows or columns with the skip
argument.
gistlibby LogSnag