select_dictionary_levels: Internal function to select dictionary nested levels

View source: R/dictionaries.R

select_dictionary_levelsR Documentation

Internal function to select dictionary nested levels

Description

Internal function to select dictionary nested levels

Usage

select_dictionary_levels(dict, levels = 1:100, level = 1)

Arguments

dict

a dictionary object

levels

an integer vector indicating levels to select

level

an internal argument to pass current levels

Examples

dict <- list("A" = list("B" = c("b", "B"), c("a", "A", "aa")))
quanteda:::select_dictionary_levels(dict, 1:2)
quanteda:::select_dictionary_levels(dict, 1)
quanteda:::select_dictionary_levels(dict, 2)

quanteda documentation built on April 7, 2026, 1:06 a.m.