as_Net: Constructor for single Net object

Description Usage Arguments Value Examples

View source: R/net_apply.R

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))))

trh3/netjack documentation built on Aug. 21, 2019, 4:04 a.m.