Learn R Programming

quanteda (version 1.5.2)

dictionary2-class: Coerce a dictionary object into a list

Description

Print/show method for dictionary objects.

Usage

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

# S4 method for dictionary2 show(object)

# 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.

object

the dictionary to be extracted

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

concatenator

character object specifying space between multi-word values