... | ... |
@@ -1272,9 +1272,9 @@ cumulative_count_union <- function(x, |
1272 | 1272 |
#' The relative sharing is calculated, for each pair of groups (A, B) as |
1273 | 1273 |
#' 3 separate columns |
1274 | 1274 |
#' \itemize{ |
1275 |
-#' \item Shared over A: (∩(A,B) / |A|) * 100 |
|
1276 |
-#' \item Shared over B: (∩(A,B) / |B|) * 100 |
|
1277 |
-#' \item Shared over union: (∩(A,B) / |∪(A,B)|) * 100 |
|
1275 |
+#' \item Shared over A: (intersection(A,B) / |A|) * 100 |
|
1276 |
+#' \item Shared over B: (intersection(A,B) / |B|) * 100 |
|
1277 |
+#' \item Shared over union: (intersection(A,B) / |union(A,B)|) * 100 |
|
1278 | 1278 |
#' } |
1279 | 1279 |
#' |
1280 | 1280 |
#' ## Plotting sharing |
... | ... |
@@ -60,9 +60,9 @@ the relative sharing (see below). |
60 | 60 |
The relative sharing is calculated, for each pair of groups (A, B) as |
61 | 61 |
3 separate columns |
62 | 62 |
\itemize{ |
63 |
-\item Shared over A: (∩(A,B) / |A|) * 100 |
|
64 |
-\item Shared over B: (∩(A,B) / |B|) * 100 |
|
65 |
-\item Shared over union: (∩(A,B) / |∪(A,B)|) * 100 |
|
63 |
+\item Shared over A: (intersection(A,B) / |A|) * 100 |
|
64 |
+\item Shared over B: (intersection(A,B) / |B|) * 100 |
|
65 |
+\item Shared over union: (intersection(A,B) / |union(A,B)|) * 100 |
|
66 | 66 |
} |
67 | 67 |
} |
68 | 68 |
|