pc_overlap | R Documentation |
Computes the percentage of overlap between two vectors based on the specified basis of calculation.
pc_overlap(x, y, basis = "x", prefix = NULL, suffix = NULL, ...)
x |
The first vector for overlap calculation. |
y |
The second vector for overlap calculation. |
basis |
A character string specifying the basis for calculating the percentage overlap.
Can be "x" for the length of |
prefix |
A prefix to add to the output string (default: NULL). |
suffix |
A suffix to add to the output string (default: NULL). |
... |
Additional arguments to pass to |
The percentage of overlap between x
and y
based on the specified basis.
x <- 1:5
y <- 3:8
pc_overlap(x, y, basis = "x")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.