I was trying to extract the following using R. And both of them are giving different results. Could someone tell me the difference between using ==
and %in%
mfile1 <- subset(data3, COUNTRY_CODE_SHR__C == c("GB","IT","CA"))
mfile <- subset(data3, COUNTRY_CODE_SHR__C %in% c("GB","IT","CA"))
Output is as follows :
mfile1 - 130374 obs of 150 variable
mfile - 392105 obs of 150 variable