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

Description Usage Arguments Value Examples

View source: R/tropr.R

Description

Convert TV Tropes content to data frame

Usage

1
2
3
## S3 method for class '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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(tropr)

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

## Not run: 
content <- trope_content(.url)
.df <- as.data.frame(content)

## End(Not run)

zedoul/tropr documentation built on Aug. 19, 2019, 5:19 a.m.