我是 R 的新手。我 t1
在 R 中有一个列表,看起来像
[[1]]
[[1]][[1]]
[1] "a" "control"
[[2]]
[[2]][[1]]
[1] "a" "disease1"
[[3]]
[[3]][[1]]
[1] "a" "disease2"
[[4]]
[[4]][[1]]
[1] "b" "control"
[[5]]
[[5]][[1]]
[1] "b" "disease1"
[[6]]
[[6]][[1]]
[1] "b" "disease2"
我需要从这个向量中获取一个唯一的第一个元素列表到一个向量中,即 ["a", "b"] t1
。我怎样才能做到这一点?