Perform non-pairwise all-to-all comparisons between two unordered character vectors — The opposite of intersect — all-to-all setdiff
问题 EXAMPLE DATA v1 <- c("E82391", "X2329323", "C239923", "E1211", "N23932", "F93249232", "X93201", "X9023111", "O92311", "9000F", "K9232932", "L9232932", "X02311111") v2 <- c("L9232932", "C239923", "E1211", "E82391", "F93249232", "U82832") PROBLEM I want to extract only those items that are in one of the vectors and not in the other. I understand that setdiff is unable to compare two unordered character vectors and find all the differences between the two.. Does, for example, %in% perform all-to