split.QDDrama {DramaAnalysis}R Documentation

Split multiple plays

Description

The function split(x) expects an object of type QDDrama and can be used to split a QDDrama object that consists of multiple dramas into a list thereof. It is the counterpart to combine(x, y).

Usage

## S3 method for class 'QDDrama'
split(x, ...)

Arguments

x

The object of class QDDrama (consisting of multiple dramas). For split() it should consist of multiple plays. For combine() it can but doesn't have to.

...

All other arguments are ignored.

Value

Returns a list of individual QDDrama objects, each containing one text.

Examples

data(rksp.0)
data(rjmw.0)
d <- combine(rjmw.0, rksp.0)
dlist <- split(d)

[Package DramaAnalysis version 3.0.2 Index]