-5
CampActID AccountID LocationName LocationID
<int> <chr> <chr> <int>
1 12 3 Mark + Brandy 3
2 12 15 NULL 0
3 12 102 Spuntino 100
4 12 126 NULL 0
5 12 128 Intersport Concept Store 312
6 12 15 NULL 0
7 12 48 Aspeli Dame 46
8 12 75 Albert Bistro 73
9 12 126 NULL 0
10 12 128 Intersport Concept Store 312
你能否详细说明你的问题? – Raptor
如果它是一个字符“NULL”,那么执行'library(dplyr); df1%>%filter(LocationName!=“NULL”&LocationID!= 0)' – akrun
现在我用NA代替0。 CampActID的AccountID LOCATIONNAME LocationID 1 12 3标记+白兰地3 2 12 15 NULL NA 3 12 102 100 Spuntino 4 12 126 NULL NA –