meanDistance | R Documentation |
Computes the mean distance of regions in A to the nearest element in B
meanDistance(A, B, ...)
A |
a region set in any of the accepted formats by |
B |
a region set in any of the accepted formats by |
... |
any additional parameter needed |
The mean of the distances of each region in A to the nearest region in B.
If a region in A is in a chromosome where no B region is, it will be ignored and removed from the mean computation.
A <- data.frame("chr1", c(1, 10, 20, 30), c(12, 13, 28, 40))
B <- data.frame("chr1", 25, 35)
meanDistance(A, B)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.