to_data_frame: Network statistics to long format dataframe

Description Usage Arguments Value Methods (by class) Examples

Description

This function converts a NetStatSet or NetSampleStatSet into a long format dataframe

Usage

1
2
3
4
5
6
7
to_data_frame(netStatSet)

## S4 method for signature 'NetStatSet'
to_data_frame(netStatSet)

## S4 method for signature 'NetSampleStatSet'
to_data_frame(netStatSet)

Arguments

netStatSet

A NetStatSet or NetSampleStatSet object

Value

A long format dataframe containing the name of the original network, the original network network statistic, the name of the manipulated network, the manipulated network network statistic and the name of the network statistic.

Methods (by class)

Examples

1
2
3
4
5
6
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)
GlobEff_GroupA_Net = net_stat_apply(Jackknife_GroupA_Net, global_efficiency)
head(to_data_frame(GlobEff_GroupA_Net))

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