更新时间:2023-11-26 19:48:10
我们可以尝试%in%
%in%
as.integer(names %in% T1_temp)
或match
match
+(!is.na(match(names,T1_temp)))
测试元素是否在列表中并返回0或1
查找列表中的任何元素是否在另一个列表中并返回找到的第一个元素