I'm new to R, trying to understand how to access elements of my dataframe when I add them to a list.
I can access the elements of the dataframe normally but can't do the same when I add the dataframe to the list. How can I do it? Thanks
abc <- rbind(presence[2,], presence[6,], presence[9,])
bca <- rbind(presence[5,], presence[7,], presence[10,])
cab <- rbind(presence[4,], presence[8,], presence[12,])
abc[1,7] #works
sets <- list(abc, bca, cab)
sets$abc[1,7] #returns NULL