remove.ids {CDatanet} | R Documentation |
Removing IDs with NA from Adjacency Matrices Optimally
Description
remove.ids
optimally removes identifiers with NA from adjacency matrices. Many combinations of rows and columns can be deleted
removing many rows and column
Usage
remove.ids(network, ncores = 1L)
Arguments
network |
is a list of adjacency matrices |
ncores |
is the number of cores to be used to run the program in parallel |
Value
List of adjacency matrices without missing values and a list of vectors of retained indeces
Examples
A <- matrix(1:25, 5)
A[1, 1] <- NA
A[4, 2] <- NA
remove.ids(A)
B <- matrix(1:100, 10)
B[1, 1] <- NA
B[4, 2] <- NA
B[2, 4] <- NA
B[,8] <-NA
remove.ids(B)
[Package CDatanet version 2.2.0 Index]