Description Usage Arguments Value Examples
View source: R/extractMoments.r
Calculate the mean for a matrix of binned data
1 2 | binnedMean(counts, lowerBounds = seq(0, 95, 5), upperBounds = seq(5, 100,
5))
|
counts |
a |
lowerBounds |
A vector of the lower cut points of the binnned data |
upperBounds |
A vector of the upper cutpoints of the original binnned data |
A vector of estimated means
1 2 3 4 5 6 7 | upper <- seq(10, 100, 10)
lower <- seq(0, 90, 10)
counts2 <- c(1, 2, 1, 4, 4, 2, 0, 0, 0, 0)
counts3 <- c(1, 2, 1, 4, 4, 0, 0, 2, 0, 0)
detectNonContig(counts2)
detectNonContig(counts3)
binnedMean(rbind(counts2, counts3), lower, upper)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.