This would be the output, I would want to see.
y <-data.frame(a = c("A", "D", "Others"), b = c(8, 9, 5),pc=c(36, 41, 23))
dput(y)
structure(list(a = structure(1:3, .Label = c("A", "D", "Others"
), class = "factor"), b = c(8, 9, 5), pc = c(36, 41, 23)), .Names = c("a",
"b", "pc"), row.names = c(NA, -3L), class = "data.frame")
print(y)
a b pc
1 A 8 36
2 D 9 41
3 Others 5 23
Would have some parameter in filter() e.g Combine = TRUE
I'm pretty sure I am not imagining it but cannot identify in documentation