如何在R中的列表中提取相同的元素

时间:2014-12-25 03:09:42

标签: r list

有三个列表:

list1 <- c("123","124","126","131")
list2 <- c("111","123","126","133","159")
list3 <- c("119","120","123","124","126","158")

在这里,我必须提取所有列表中包含的元素。在这种情况下,新列表(例如mylist)应包含"123""126"。怎么能在R?

中做到这一点

0 个答案:

没有答案