Description Usage Arguments See Also Examples
Generate text (i.e. html) and read it in the viewer pane of RStudio. If called on
a "partitionBundle"
-object, skip through the partitions contained in the
bundle.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | read(.Object, ...)
## S4 method for signature 'partition'
read(.Object, meta = NULL, highlight = list(),
cqp = FALSE, tooltips = NULL, verbose = TRUE, cpos = FALSE,
cutoff = getOption("polmineR.cutoff"), ...)
## S4 method for signature 'partitionBundle'
read(.Object, highlight = list(), cqp = FALSE,
cpos = FALSE, ...)
## S4 method for signature 'data.table'
read(.Object, col, partitionBundle, cqp = FALSE,
highlight = list(), cpos = FALSE, ...)
## S4 method for signature 'hits'
read(.Object, def, i = NULL, ...)
## S4 method for signature 'kwic'
read(.Object, i, type = NULL)
## S4 method for signature 'Regions'
read(.Object, meta = NULL)
|
.Object |
an object to be read ( |
... |
further parameters passed into read |
meta |
a character vector supplying s-attributes for the metainformation to be printed, if not stated explicitly, session settings will be used |
highlight |
a list |
cqp |
a list of character vectors with regular expressions to highlight relevant terms or expressions; the names of the list provide the colors |
tooltips |
a list |
verbose |
logical |
cpos |
logical |
cutoff |
maximum number of tokens to display |
col |
column |
partitionBundle |
a partitionBundle object |
def |
... |
i |
... |
type |
... |
For concordances / a keword-in-context display, see kwic
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Not run:
use("polmineR.sampleCorpus")
options("polmineR.meta" = "text_date")
merkel <- partition(
"PLPRBTTXT",
text_date="2009-11-10", text_name="Angela Dorothea Merkel",
type="plpr"
)
read(merkel, meta=c("text_name", "text_date"))
read(
merkel,
highlight = list(yellow=c("Deutschland", "Bundesrepublik"), lightgreen="Regierung"),
meta = c("text_name", "text_date")
)
all <- partition("PLPRBTTXT", list(text_id=".*"), regex=TRUE, type="plpr")
speeches <- as.speeches(all, sAttributeDates="text_date", sAttributeNames="text_name", gap=500)
read(speeches)
migVocab <- count(speeches, query=c("Migration", "Integration", "Zuwanderung"))
read(migVocab, col="Integration", partitionBundle=speeches)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.