characterStatistics: Basic Character Statistics

Description Usage Arguments Value See Also Examples

View source: R/figures.R

Description

This function extracts character statistics from a drama object.

Usage

1
2
characterStatistics(drama, normalize = FALSE, segment = c("Drama",
  "Act", "Scene"), filterPunctuation = FALSE)

Arguments

drama

A QDDrama object

normalize

Normalizing the individual columns

segment

"Drama", "Act", or "Scene". Allows calculating statistics on segments of the play

filterPunctuation

Whether to exclude all punctuation from token counts

Value

A data frame with the additional classes QDCharacterStatistics and QDHasCharacter. It has following columns and one row for each character: tokens: The number of tokens spoken by that character types : The number of different tokens (= types) spoken by each character utterances: The number of utterances utteranceLengthMean: The mean length of utterances utteranceLengthSd: The standard deviation in utterance length

See Also

characterNames

Examples

1
2

quadrama/DramaAnalysis documentation built on July 21, 2019, 2:15 a.m.