net_apply: Apply a network manipulation function to a single network, or...

Description Usage Arguments Value Methods (by class) Examples

Description

This function applies a network manipulation function to a single network or sample of networks, and returns a NetSet, or NetSampleSet containing the results.

Usage

1
2
3
4
5
6
7
8
9
net_apply(network, net.function, net.function.args, orig.net.name)

## S4 method for signature 'Net,ANY,ANY,ANY'
net_apply(network, net.function,
  net.function.args, orig.net.name)

## S4 method for signature 'NetSample,ANY,ANY,missing'
net_apply(network, net.function,
  net.function.args, orig.net.name)

Arguments

network

An Net object or a NetSample object

net.function

A network manipulation function (reference or character)

net.function.args

A labeled list containing arguments to the net.function

orig.net.name

The original network name, when applying net_apply to a Net

Value

A NetSet or NetSampleSet object

Methods (by class)

Examples

1
2
3
4
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))))
Jackknife_GroupA_Net = net_apply(GroupA_Net, node_jackknife)

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