I am new to R and wondered how to import Excel data into R using row names and column names. In particular, I require a subset of data in multiple sheets in a single excel file. Can I use row names and column names to identify and retrieve specific data cells in R?
Worksheet 1
For example, in the above table, how could I extract the data (2,2,2,2) using the row and column names (D, Y) (D, Z) (E, Y) (E, Z) in sheet 1
how can I extract data (1,1,1,1) using row and column names (D, Y1) (D, Z1) (E, Y1) (E, Z1) in sheet 2?
Thanks for the help provided.
Barry
barryq
source share