Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

terms

Get terms in partition or corpus.


Description

Get terms in partition or corpus.

Usage

## S4 method for signature 'slice'
terms(x, p_attribute, regex = NULL, ...)

## S4 method for signature 'partition'
terms(x, p_attribute, regex = NULL, ...)

## S4 method for signature 'subcorpus'
terms(x, p_attribute, regex = NULL, ...)

## S4 method for signature 'character'
terms(x, p_attribute, regex = NULL, robust = FALSE, ...)

Arguments

x

an atomic character vector with a corpus id or partition object

p_attribute

the p-attribute to be analyzed

regex

regular expression(s) to filter results

...

for backward compatibility

robust

logical, whether to check for potential failures

Examples

use("polmineR")
session <- partition("GERMAPARLMINI", date = "2009-10-27")
words <- terms(session, "word")
terms(session, p_attribute = "word", regex = "^Arbeit.*")
terms(session, p_attribute = "word", regex = c("Arbeit.*", ".*arbeit"))

terms("GERMAPARLMINI", p_attribute = "word")
terms("GERMAPARLMINI", p_attribute = "word", regex = "^Arbeit.*")

polmineR

Verbs and Nouns for Corpus Analysis

v0.8.5
GPL-3
Authors
Andreas Blaette [aut, cre] (<https://orcid.org/0000-0001-8970-8010>), Christoph Leonhardt [ctb]
Initial release
2020-09-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.