dictionary-class: dictionary class objects and functions

dictionary2-classR Documentation

dictionary class objects and functions

Description

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

Usage

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

## S4 method for signature 'dictionary2,index,ANY,ANY'
x[i]

## S4 method for signature 'dictionary2,index'
x[[i]]

## S3 method for class 'dictionary2'
x$name

## S4 method for signature '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

object

the dictionary to be extracted

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


quanteda documentation built on May 31, 2023, 8:28 p.m.