I want to import only a couple of rows of a large Excel sheet in R (repeatedly, from different sheets, with different rows).
Once imported the whole sheet would look something like:
data.frame(cat=rep(1:10,each=2),val=rnorm(20,10,1))
I could of course import and then subset
`mydata <- read_excel("file")[var1=="expr",]`
but then I would unnecessarily import the whole sheet. Is there any possibility to filter the sheet before importing it?