Learn R Programming

netjack (version 1.0.0)

as_Net: Constructor for single Net object

Description

This function takes a single network, as an adjacency matrix, and returns a Net object.

Usage

as_Net(matrix, net.name, node.variables)

Arguments

matrix

Network represented as an adjacency matrix

net.name

Name of the network (optional)

node.variables

Node level variables (optional)

Value

A Net object

Examples

Run this code
# 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