Provides convenient editing of dictionaries, using an interactive editor.
list_edit()
and char_edit()
provide lower-level convenience functions
for interactive editing of (lists of) character objects. These can be useful
for instance in editing stopword lists.
dictionary_edit(x, ...) list_edit(x, ...) char_edit(x, ...)
x | a dictionary or (list of) character elements |
---|---|
... | (optional) arguments passed to |
an edited version of the input object
# edit the positive and negative entries from the LSD2015 if (FALSE) { my_posneg_dict <- dictionary_edit(data_dictionary_LSD2015[1:2])} # edit the system stopwords if (FALSE) { my_stopwords <- stopwords("en", source = "snowball") %>% char_edit()}