Skip to contents

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)
#>    shift          family measure value
#> 1  AB-BA  turn_receiving   count     0
#> 2  AB-B0  turn_receiving   count     0
#> 3  AB-BY  turn_receiving   count    18
#> 4  A0-X0   turn_claiming   count     0
#> 5  A0-XA   turn_claiming   count     1
#> 6  A0-XY   turn_claiming   count     2
#> 7  AB-X0   turn_usurping   count     3
#> 8  AB-XA   turn_usurping   count    14
#> 9  AB-XB   turn_usurping   count    20
#> 10 AB-XY   turn_usurping   count   169
#> 11 A0-AY turn_continuing   count     0
#> 12 AB-A0 turn_continuing   count     0
#> 13 AB-AY turn_continuing   count     8