I try to do a subset from an original data base but I don't understand why I have some different results with lines that seem the same. Let's take an example :
a <- data.frame(c("1091Z","4773Z","4725Z","4781Z","4789Z","4725Z","4779Z","4789Z",
"1071D","4789Z"))
colnames(a) <- "name"
b<- subset(a, name == c("1071D","4789Z")) #3 obs. of 1 variables
d<- subset(a, name == c("4789Z","1071D")) #1 obs. of 1 variables
c<- subset(a, name == "4789Z" |name =="1071D") #4 obs. of 1 variables
The results are the same if I use filter
in stead of subset
.