handleMissings(mat, na = NA, method = "remove", logical = FALSE)
NA
, sometimes 9
or 10
. method = "remove"
is set, the function determines how many missing entries are in each row and column and iteratively removes rows or columns with the largest amount of missing data until no missing data are left in the matrix. If method = "fillmode"
is set, the modal value of the matrix is identified (usually 0
in network matrices) and missing cells are imputed by filling in this modal value. method = "zero"
replaces NAs by 0s.