personnelExchange: Measuring Personnel Exchange over Boundaries

Description Usage Arguments Value Examples

Description

There are multiple ways to quantify the number of characters that are exchanged over a scene or act boundary.

Usage

1
2
3
hamming(drama, variant = c("Trilcke", "Hamming", "NormalizedHamming"))

scenicDifference(drama, norm = length(unique(drama$text$Speaker.figure_id)))

Arguments

drama

The QDDrama Object

variant

For hamming(), variants are "Trilcke" (default), "NormalizedHamming", and "Hamming"

norm

For scenicDifference(), specifies the normalization constant

Value

A QDHamming object, which is a list of values, one for each scene change. The values indicate the (potentially) normalized number of characters that are exchanged.

Examples

1
2
3
4
data(rksp.0)
dist_trilcke  <- hamming(rksp.0)
dist_hamming  <- hamming(rksp.0, variant = "Hamming")
dist_nhamming <- hamming(rksp.0, variant = "NormalizedHamming")

DramaAnalysis documentation built on Jan. 13, 2021, 10:02 p.m.