NetSample
objectThis function takes a list of adjacency matrices, and returns a NetSample
object.
as_NetSample(matrixList, net.names, node.variables, sample.variables)
A list of adjacency matrices
A character vector of network names
A list of node level variables to be associated with every network in the sample.
A list of network level variables.
A NetSample
instance.
# NOT RUN {
data(GroupA)
GroupA_Net = as_NetSample(GroupA, 1:20, node.variables = list(community = c(rep(1, 10), rep(2,10))),
sample.variables = list(group = c(rep(1, 10), rep(2,10))))
# }
Run the code above in your browser using DataLab