Learn R Programming

rdracor (version 1.0.3)

get_character_plays: Retrieve plays having a character identified by 'Wikidata ID'

Description

get_character_plays() requests plays that include a character that can by found in 'Wikidata' by it's id. get_character_plays() sends a request and parses the the result to get those plays as a data frame.

Usage

get_character_plays(char_wiki_id)

Value

Data frame, in which one row represents one play. Information on author(s) name, character name, play name, URL and ID is represented in separate columns.

Arguments

char_wiki_id

Character value with 'Wikidata ID' for a character. 'Wikidata ID' can be found on https://www.wikidata.org/wiki/Wikidata:Main_Page. Character vector (longer than 1) is not supported.

See Also

get_dracor

Examples

Run this code
wiki_id <- "Q131412"
get_character_plays(wiki_id)

Run the code above in your browser using DataLab