Version_ID Development_methodology Version.Type
75 Agile On-going
62 Waterfall On-going
63 Waterfall On-going
73 Waterfall On-going
730 Waterfall On-going
631 Waterfall On-going
61 Waterfall On-going
616 Waterfall On-going
ID的向量:
ind<-c(75,63,73,616)
我想提取行具有Version_ID!= ind:
的子集Version_ID Development_methodology Version.Type
62 Waterfall On-going
730 Waterfall On-going
631 Waterfall On-going
61 Waterfall On-going
由于
答案 0 :(得分:3)
使用%in%
运算符。
df[!df$Version_ID %in% ind, ]
有关更多信息,请参阅?"%in%