powered by
Internal function to select dictionary nested levels
select_dictionary_levels(dict, levels = 1:100, level = 1)
a dictionary object
an integer vector indicating levels to select
an internal argument to pass current levels
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)
Run the code above in your browser using DataLab