as_Net: Constructor for single Net object

Description Usage Arguments Value Examples

Description

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

Usage

1
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

1
2
data(GroupA)
GroupA1_Net = as_Net(GroupA[[1]], "1", list(group = c(rep(1, 10), rep(2,10))))

netjack documentation built on July 8, 2019, 1:02 a.m.