Learn R Programming

quanteda (version 4.1.0)

dictionary2-class: dictionary class objects and functions

Description

The dictionary2 class constructed by dictionary(), and associated core class functions.

Usage

# S4 method for dictionary2
as.list(x, flatten = FALSE, levels = 1:100)

# S4 method for dictionary2,index,ANY,ANY [(x, i)

# S4 method for dictionary2,index [[(x, i)

# S3 method for dictionary2 $(x, name)

# S4 method for dictionary2 c(x, ...)

Arguments

flatten

flatten the nested structure if TRUE

levels

integer vector indicating levels in the dictionary. Used only when flatten = TRUE.

i

index for entries

name

the dictionary key

...

dictionary objects to be concatenated

Slots

.Data

named list of mode character, where each element name is a dictionary "key" and each element is one or more dictionary entry "values" consisting of a pattern match

meta

list of object metadata