loadDrama: Load drama

Description Usage Arguments Value Examples

View source: R/load.R

Description

This function loads one or more of the installed plays and returns them as a QDDrama object.

Usage

1
loadDrama(ids, defaultCollection = "qd")

Arguments

ids

A vector of ids.

defaultCollection

If the ids do not have a collection prefix, the defaultCollection prefix is applied.

Value

The function returns a QDDrama object. This is essentially a list of data.tables, covering the different aspects (utterances, segments, characters, ...). If multiple ids have been supplied as arguments, the tables contain the information of multiple plays.

Examples

1
2
3
4
5
6
7
# both are equivalent
## Not run: 
installData("test")
d <- loadDrama(c("test:rksp.0", "test:rjmw.0"))
d <- loadDrama(c("rksp.0", "rjmw.0"), defaultCollection = "test")

## End(Not run)

DramaAnalysis documentation built on Jan. 13, 2021, 10:02 p.m.