textvenn.RdUtility function to calculate intersection and setdiffs for two vectors
textvenn(A, B, quiet = FALSE)
| A | a vector |
|---|---|
| B | a vector of the same type as A |
| quiet | suppress printing if TRUE |
a list with three elements: A is setdiff(A,B). int is intersect(A,B). B is setdiff(B,A)
Originally from randomFunctions
A <- 1:3 B <- 2:4 textvenn(A,B)#> set A: #> 1 #> intersection: #> 2 3 #> set B: #> 4tv <- textvenn(A,B,quiet=TRUE) tv#> $A #> [1] 1 #> #> $int #> [1] 2 3 #> #> $B #> [1] 4 #>