我有一个df:
df<-structure(list(Name = c("test", "a", "nb", "c", "r", "f", NA,
"d", "ee", "test", "value", "test", "b")), row.names = c(NA,
-13L), class = c("tbl_df", "tbl", "data.frame"))
我怎样才能只保留上排==“测试”和行值!=“值”的行?
新的df1遗嘱看起来像这样(任何一种情况都可以):
我有一个df:
df<-structure(list(Name = c("test", "a", "nb", "c", "r", "f", NA,
"d", "ee", "test", "value", "test", "b")), row.names = c(NA,
-13L), class = c("tbl_df", "tbl", "data.frame"))
我怎样才能只保留上排==“测试”和行值!=“值”的行?
新的df1遗嘱看起来像这样(任何一种情况都可以):