as.data.frame.dynet_snapshot: Tidy table of snapshot edges

View source: R/mixing.R

as.data.frame.dynet_snapshotR Documentation

Tidy table of snapshot edges

Description

Tidy table of snapshot edges

Usage

## S3 method for class 'dynet_snapshot'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)

Arguments

x

A dynet_snapshot from snapshots().

row.names

Ignored; present for compatibility with the generic.

optional

Ignored; present for compatibility with the generic.

...

Ignored.

Value

A plain data.frame with the same rows and columns.

Examples

dn <- dynet(school_contacts)
bins <- snapshots(dn)
bins_table <- as.data.frame(bins)
head(bins_table)

Dynet documentation built on Oct. 7, 2026, 5:08 p.m.