I have list of 155 elements, eahc contain 3 lists.
below I made an small example. I am only interested in keeping values in gene
and am trying in R
to remove first and second list of each element all at once! leaving me only values in gene.
test <- list(name="Adipose", desc= "Roche", gene = c("KRT14", "RPE65"))
test1 <- list(name="muscle", desc= "Roche", gene = c("THRSP", "KRT14"))
test2 <- list(name="WBC" , desc= "Roche", gene = c("RBP4", "CCDC80"))
x <- c(test,test1, test2)
How to achieve that?