Converts a matrix to a list, calculates matrix fill, or exclude rows/columns with certain rox/column sums.
1 2 3 4
A vector or matrix to be converted.
Numeric, exclude rows/columns with sums <=
Logical, if a vector of excluded rows/columns should be attached to the return value as an attribute.
mat2list returns a list of length
ncol(x) depending on
Elements are rows/columns of
x. Dimnames are retained as names.
mfill returns a single number with the matrix fill value.
cdrop returns the original object but excluding rows (
rdrop), or columns (
that has sum <=
cutoff. Excluded row/colum numbers and specifications are stored in the
"exclude" attribute of
attrib = TRUE.
P\'eter S\'olymos, [email protected]
S\'olymos P. (2008) mefa: an R package for handling and reporting count data. Community Ecology 9, 125–127.
S\'olymos P. (2009) Processing ecological data in R with the mefa package. Journal of Statistical Software 29(8), 1–28. http://www.jstatsoft.org/v29/i08/
1 2 3 4 5 6 7 8 9 10 11 12 13
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.