R语言mapply应用一例

需求:求data frame下两列有交集的元素个数,例如,m2和m3存储的都是以逗号分割的字符串,现在求m2和m3的交集,

答案,

 

Leave a Reply

Your email address will not be published. Required fields are marked *