And similar idea in dplyr:library(dplyr)library(tidyr)m%>% bind_rows()%>% pivot_longer(cols = -id)%>% group_by(name)%>% filter(!duplicated(value) & !duplicated(value, fromLast = T))%>% group_by(id)%>% group_split() 这篇关于查找仅在R中的一行中出现的变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-27 07:34