Utility function to generate a nested list
Utility function to generate a nested list
nest_dictionary(dict, depth)
dict |
a flat dictionary |
depth |
depths of nested element |
lis <- list("A" = c("a", "aa", "aaa"), "B" = c("b", "bb"), "C" = c("c", "cc"), "D" = c("ddd")) dict <- quanteda:::list2dictionary(lis) quanteda:::nest_dictionary(dict, c(1, 1, 2, 2)) quanteda:::nest_dictionary(dict, c(1, 2, 1, 2))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.