Learn R Programming

polmineR (version 0.7.8)

terms: Get Terms Occurring in Partition or Corpus.

Description

Get Terms Occurring in Partition or Corpus.

Usage

# S4 method for partition
terms(x, pAttribute, regex = NULL)

# S4 method for character terms(x, pAttribute, regex = NULL, robust = FALSE)

Arguments

x

an atomic character vector with a corpus id or partition object

pAttribute

the p-attribute to be analyzed

regex

regular expression(s) to filter results

robust

logical, whether to check for potential failures

Examples

Run this code
# NOT RUN {
use("polmineR")
session <- partition("GERMAPARLMINI", date = "2009-10-27")
words <- terms(session, "word")
terms(session, pAttribute = "word", regex = "^Arbeit.*")
terms(session, pAttribute = "word", regex = c("Arbeit.*", ".*arbeit"))

terms("GERMAPARLMINI", pAttribute = "word")
terms("GERMAPARLMINI", pAttribute = "word", regex = "^Arbeit.*")
# }

Run the code above in your browser using DataLab