replace_dictionary_values: Internal function to replace dictionary values

Description Usage Arguments Examples

View source: R/dictionaries.R

Description

Internal function to replace dictionary values

Usage

1
replace_dictionary_values(dict, from, to)

Arguments

dict

a dictionary object

Examples

1
2
3
4
5
6
7
dict <- list(KEY1 = list(SUBKEY1 = list("A_B"),
                          SUBKEY2 = list("C_D")),
              KEY2 = list(SUBKEY3 = list("E_F"),
                          SUBKEY4 = list("G_F_I")),
              KEY3 = list(SUBKEY5 = list(SUBKEY7 = list("J_K")),
                          SUBKEY6 = list(SUBKEY8 = list("L"))))
quanteda.core:::replace_dictionary_values(dict, "_", " ")

koheiw/quanteda.core documentation built on Sept. 21, 2020, 3:44 p.m.