Description Usage Arguments Value See Also Examples
View source: R/binMeansMatrix.R
calculates the mean of non-overlapping bins for each row in a matrix.
1 | binMeansMatrix(my_mat, my_binning = 10)
|
my_mat |
input matrix. |
my_binning |
integer of bin size. |
output matrix with original number of rows and my_binning
times less number of columns.
1 2 | m <- matrix(1:100, ncol=10)
binMeansMatrix(m, 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.