as_NetSample: Constructor for a 'NetSample' object

Description Usage Arguments Value Examples

Description

This function takes a list of adjacency matrices, and returns a NetSample object.

Usage

1
as_NetSample(matrixList, net.names, node.variables, sample.variables)

Arguments

matrixList

A list of adjacency matrices

net.names

A character vector of network names

node.variables

A list of node level variables to be associated with every network in the sample.

sample.variables

A list of network level variables.

Value

A NetSample instance.

Examples

1
2
3
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))))

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