presence: Active and Passive Presence

Description Usage Arguments Value Examples

View source: R/presence.R

Description

This function should be called for a single text. It returns a data.frame with one row for each character in the play. The data.frame contains information about the number of scenes in which a character is actively speaking or passively mentions. Please note that the information about passive presence is derived from coreference resolved texts, which is a difficult task and not entirely reliable. The plays included in the package feature manually annotated coreferences (and thus, the presence is calculated on the basis of very well data).

Usage

1
presence(drama, passiveOnlyWhenNotActive = TRUE)

Arguments

drama

A single drama

passiveOnlyWhenNotActive

Logical. If true (default), passive presence is only counted if a character is not actively present in the scene.

Value

QDHasCharacter, data.frame. Columns actives, passives and scenes show the absolute number of scenes in which a character is actively/passively present, or the total number of scenes in the play. The column presence is calculated as (actives-passives)/scenes.

Examples

1
2

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