loadDrama {DramaAnalysis} | R Documentation |
This function loads one or more of the installed plays and
returns them as a QDDrama
object.
loadDrama(ids, defaultCollection = "qd")
ids |
A vector of ids. |
defaultCollection |
If the ids do not have a collection prefix, the defaultCollection prefix is applied. |
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.
# 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)