Description Usage Arguments Examples
Utility function to generate a nested list
1 | nest_dictionary(dict, depth)
|
dict |
a flat dictionary |
depth |
depths of nested element |
1 2 3 4 | lis <- list("A" = c("a", "aa", "aaa"), "B" = c("b", "bb"), "C" = c("c", "cc"), "D" = c("ddd"))
dict <- quanteda.core:::list2dictionary(lis)
quanteda.core:::nest_dictionary(dict, c(1, 1, 2, 2))
quanteda.core:::nest_dictionary(dict, c(1, 2, 1, 2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.