| as.data.frame.dynet_pshifts | R Documentation |
Tidy data frame of participation shift counts
## S3 method for class 'dynet_pshifts'
as.data.frame(x, row.names = NULL, optional = FALSE, ...)
x |
A |
row.names |
Ignored; present for compatibility with the generic. |
optional |
Ignored; present for compatibility with the generic. |
... |
Ignored. |
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.
dn <- dynet(school_contacts)
shifts <- pshifts(dn)
as.data.frame(shifts)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.