powered by
This function takes a single network, as an adjacency matrix, and returns a Net object.
Net
as_Net(matrix, net.name, node.variables)
Network represented as an adjacency matrix
Name of the network (optional)
Node level variables (optional)
A Net object
# NOT RUN { data(GroupA) GroupA1_Net = as_Net(GroupA[[1]], "1", list(group = c(rep(1, 10), rep(2,10)))) # }
Run the code above in your browser using DataLab