美文网首页
在source表中查找list名单内的项

在source表中查找list名单内的项

作者: NeataVino | 来源:发表于2019-08-14 14:33 被阅读0次

source <- read.csv(file.choose(),stringsAsFactors = F,header = T,row.names = 1)
list <- read.csv(file.choose(),stringsAsFactors = F,header = T)
PRC <- source[row.names(source) %in%list[,1],]
write.csv(PRC,"PRC.csv")

相关文章

网友评论

      本文标题:在source表中查找list名单内的项

      本文链接:https://www.haomeiwen.com/subject/mdmgjctx.html