loadDrama {DramaAnalysis} | R Documentation |
Load drama
Description
This function loads one or more of the installed plays and
returns them as a QDDrama
object.
Usage
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.table
s, covering the different aspects (utterances, segments,
characters, ...). If multiple ids have been supplied as arguments, the tables
contain the information of multiple plays.
Examples
# 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)
[Package DramaAnalysis version 3.0.2 Index]