as.data.frame.dynet_pshifts: Tidy data frame of participation shift counts

View source: R/pshifts.R

as.data.frame.dynet_pshiftsR Documentation

Tidy data frame of participation shift counts

Description

Tidy data frame of participation shift counts

Usage

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

Arguments

x

A dynet_pshifts result.

row.names

Ignored; present for compatibility with the generic.

optional

Ignored; present for compatibility with the generic.

...

Ignored.

Value

A plain data.frame carrying the same rows and columns as x. For a result built with output = "final" that is one row per shift type – shift, family and count – preceded by session when the result is session-local; the thirteen Gibson shift types are always present, including those with a count of zero. For output = "cumulative" it is thirteen rows per classified turn, adding sequence, event, time, speaker, target and group ahead of shift, family and count.

Examples

dn <- dynet(school_contacts)
shifts <- pshifts(dn)
as.data.frame(shifts)

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