Description Usage Arguments Details See Also
Handle missing data in matrices.
1 | handleMissings(mat, na = NA, method = "remove", logical = FALSE)
|
mat |
A matrix object. |
na |
The value that missing data are coded as. Usually |
method |
What should be done with the missing data? If |
logical |
Return a matrix with logical values indicating which cells should be removed? By default the manipulated matrix is returned. |
This function deals with missing data in matrices or network objects used for inferential network analysis. It can either remove missing rows and/or columns iteratively (rows and columns with more NA values first, then successively rows and columns with fewer NA entries) or replace missing values by the modal value of the matrix or by 0. The function can return either the manipulated matrix or a matrix with logical values indicating which of the cells should be removed.
adjust
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.