centrality: Calculate the centralities of characters in a play.

Description Usage Arguments Value Examples

View source: R/centrality.R

Description

centrality takes a play (play) and a centrality measure (measure) and returns the list of characters in the play sorted by the centrality measure.

Usage

1
centrality(play, measure)

Arguments

play

The ID of a play.

measure

"betweenness," "degree," or "eigenvector."

Value

A data table of the sorted centrality value for all characters in the play.

Examples

1
centrality("Rom", "degree")

ajfabry/Statspeare documentation built on Jan. 26, 2020, 7:44 a.m.