tropr (version 0.1.2)

as.data.frame.tropr.content: Convert TV Tropes content to data frame

Description

Convert TV Tropes content to data frame

Usage

# S3 method for tropr.content
as.data.frame(x, ...,
  stringsAsFactors = default.stringsAsFactors())

Arguments

x

tropr.content object

...

additional arguments to be passed to data.frame

stringsAsFactors

logical: should the character vector be converted to a factor?

Value

data.frame with tv trope contents

Examples

Run this code
library(tropr)

# Use any TV Tropes page url that you analyses
.url <- "http://tvtropes.org/pmwiki/pmwiki.php/Main/SenseiChan"


content <- trope_content(.url)
.df <- as.data.frame(content)

Run the code above in your browser using DataLab