get_net_cooccur_edges: Retrieve co-occurrence edges list for a play as a data frame

View source: R/net.R

get_net_cooccur_edgesR Documentation

Retrieve co-occurrence edges list for a play as a data frame

Description

get_net_cooccur_edges() requests edges list for a play network, given corpus and play names. Each row represents co-occurrences of two characters in a play — number of scenes where two characters appeared together. This edges list can be used to construct a network for a play.

Usage

get_net_cooccur_edges(play = NULL, corpus = NULL, ...)

get_net_relations_edges(play = NULL, corpus = NULL, ...)

Arguments

play

Character, name of a play (you can find all play names in "playName" column within an object returned by get_dracor). Character vector (longer than 1) is not supported.

corpus

Character, name of the corpus (you can find all corpus names in name column within an object returned by get_dracor_meta).

...

Additional arguments passed to dracor_api.

Value

data frame with edges (each row = one edge of a network).

Functions

  • get_net_relations_edges(): Retrieves kinship and other relationship data, following the encoding scheme proposed in \insertCitewiedmer_nathalie_2020_4621778rdracor.

References

\insertAllCited

See Also

get_net_cooccur_igraph get_net_cooccur_gexf get_net_cooccur_graphml get_net_cooccur_metrics get_net_relations_igraph

Examples

get_net_cooccur_edges(play = "lessing-emilia-galotti", corpus = "ger")

Pozdniakov/rdracor documentation built on April 9, 2024, 1:20 a.m.