I'm not founding any argument in the fread()
function to let me select the sheet I want.
I'm trying this:
tab <- data.table::fread('myfile.xlsx')
As my file has many sheets, how can I select just one of them by sheet name?
I'm not founding any argument in the fread()
function to let me select the sheet I want.
I'm trying this:
tab <- data.table::fread('myfile.xlsx')
As my file has many sheets, how can I select just one of them by sheet name?
library("readxl")
FirstTable <- read_excel("locations.xlsx", 1) # for first tab
SecondTable <- read_excel("locations.xlsx", 4) # for fourth tab
An alternative way!
You may find this link useful - importing excel to r