How to read data from an Excel .xlsx file in R
To read directly from a .xlsx in the same directory as your R script:
> data <- read.xlsx(“yourdata.xlsx”) |
… or …
To read from a workspace directory containing a .xlsx file:
> wdir = “C:/workspace/yourdirectory” |
… or …
To read from the second sheet of a .xlsx workbook:
> wdir = “C:/workspace/yourdirectory” |