utteranceStatistics: Utterance Statistics

Description Usage Arguments Value See Also Examples

View source: R/utteranceStatistics.R

Description

This method calculates the length of each utterance, organized by character and drama.

Usage

1
utteranceStatistics(drama, normalizeByDramaLength = TRUE)

Arguments

drama

The dramatic text(s)

normalizeByDramaLength

Logical value. If true, the resulting values will be normalized by the length of the drama.

Value

Returns an object of class QDUtteranceStatistics, which is essentially a data.frame.

See Also

characterNames

Examples

1
2
3
4
5
6
data(rksp.0)
ustat <- utteranceStatistics(rksp.0)

boxplot(ustat$utteranceLength ~ ustat$character,
   col=qd.colors[1:5],
   las=2, frame=FALSE)

quadrama/DramaAnalysis documentation built on Sept. 28, 2020, 8:42 p.m.