I'm doing the following in order to import some txt tables and keep them as list:
# set working directory - the folder where all selection tables are stored
hypo_selections<-list.files() # change object name according to each species
hypo_list<-lapply(hypo_selections,read.table,sep="\t",header=T) # change object name according to each species
I want to access one specific element, let's say hypo_list[1]. Since each element represents a table, how should I procced to access particular cells (rows and columns)?
I would like to do something like it:
a<-hypo_list[1]
a[1,2]
But I get the following error message:
Error in a[1, 2] : incorrect number of dimensions
Is there a clever way to do it?