Learn R Programming

netjack (version 1.0.0)

as_NetSample: Constructor for a NetSample object

Description

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

Usage

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

Run this code
# NOT RUN {
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))))
# }

Run the code above in your browser using DataLab